pub enum MessageSendInstructions {
WithSpecifiedReplyPath {
destination: Destination,
reply_path: BlindedMessagePath,
},
WithReplyPath {
destination: Destination,
context: MessageContext,
},
WithoutReplyPath {
destination: Destination,
},
ForReply {
instructions: ResponseInstruction,
},
ForwardedMessage {
destination: Destination,
reply_path: Option<BlindedMessagePath>,
},
}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.
ForwardedMessage
Indicates that this onion message did not originate from our node and is being forwarded through us from another node on the network to the destination.
We separate out this case because forwarded onion messages are treated differently from
outbound onion messages initiated by our node. Outbounds are buffered internally, whereas, for
DoS protection, forwards should never be buffered internally and instead will either be
dropped or generate an Event::OnionMessageIntercepted if the next-hop node is
disconnected.
Fields
destination: DestinationThe destination where we need to send the forwarded onion message.
reply_path: Option<BlindedMessagePath>The reply path which should be included in the message, that terminates at the original sender of this forwarded message.
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