pub struct Responder { /* private fields */ }Expand description
The Responder struct creates an appropriate ResponseInstruction for responding to a
message.
Implementations§
Source§impl Responder
impl Responder
Sourcepub fn respond(self) -> ResponseInstruction
pub fn respond(self) -> ResponseInstruction
Creates a ResponseInstruction for responding without including a reply path.
Use when the recipient doesn’t need to send back a reply to us.
Sourcepub fn respond_with_reply_path(
self,
context: MessageContext,
) -> ResponseInstruction
pub fn respond_with_reply_path( self, context: MessageContext, ) -> ResponseInstruction
Creates a ResponseInstruction for responding including a reply path.
Use when the recipient needs to send back a reply to us.
Trait Implementations§
Source§impl Writeable for Responder
impl Writeable for Responder
impl Eq for Responder
impl StructuralPartialEq for Responder
Auto Trait Implementations§
impl Freeze for Responder
impl RefUnwindSafe for Responder
impl Send for Responder
impl Sync for Responder
impl Unpin for Responder
impl UnwindSafe for Responder
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more