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: Destination
The destination where we need to send our message.
reply_path: BlindedMessagePath
The 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: Destination
The destination where we need to send our message.
context: MessageContext
The 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: Destination
The 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: ResponseInstruction
The 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<'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> 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
Source§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