Enum MessageSendInstructions
pub enum MessageSendInstructions {
WithSpecifiedReplyPath {
destination: Destination,
reply_path: BlindedMessagePath,
},
WithReplyPath {
destination: Destination,
context: MessageContext,
},
WithoutReplyPath {
destination: Destination,
},
ForReply {
instructions: ResponseInstruction,
},
}Expand description
Instructions for how and where to send a message.
Variants§
WithSpecifiedReplyPath
Indicates that a message should be sent including the provided reply path for the recipient to respond.
Fields
destination: DestinationThe destination where we need to send our message.
reply_path: BlindedMessagePathThe reply path which should be included in the message.
WithReplyPath
Indicates that a message should be sent including a reply path for the recipient to respond.
Fields
destination: DestinationThe destination where we need to send our message.
context: MessageContextThe context to include in the reply path we’ll give the recipient so they can respond to us.
WithoutReplyPath
Indicates that a message should be sent without including a reply path, preventing the recipient from responding.
Fields
destination: DestinationThe destination where we need to send our message.
ForReply
Indicates that a message is being sent as a reply to a received message.
Fields
instructions: ResponseInstructionThe instructions provided by the Responder.
Trait Implementations§
§impl Clone for MessageSendInstructions
impl Clone for MessageSendInstructions
§fn clone(&self) -> MessageSendInstructions
fn clone(&self) -> MessageSendInstructions
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreAuto Trait Implementations§
impl Freeze for MessageSendInstructions
impl RefUnwindSafe for MessageSendInstructions
impl Send for MessageSendInstructions
impl Sync for MessageSendInstructions
impl Unpin for MessageSendInstructions
impl UnwindSafe for MessageSendInstructions
Blanket Implementations§
§impl<T> AnySync for T
impl<T> AnySync for T
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request