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§
Source§impl Clone for MessageSendInstructions
impl Clone for MessageSendInstructions
Source§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 more