Struct OnionMessagePath
pub struct OnionMessagePath {
pub intermediate_nodes: Vec<PublicKey>,
pub destination: Destination,
pub first_node_addresses: Option<Vec<SocketAddress>>,
}
Expand description
A path for sending an OnionMessage
.
Fields§
§intermediate_nodes: Vec<PublicKey>
Nodes on the path between the sender and the destination.
destination: Destination
The recipient of the message.
first_node_addresses: Option<Vec<SocketAddress>>
Addresses that may be used to connect to OnionMessagePath::first_node
.
Only needs to be set if a connection to the node is required. OnionMessenger
may use
this to initiate such a connection.
Implementations§
§impl OnionMessagePath
impl OnionMessagePath
pub fn first_node(&self) -> Option<PublicKey>
pub fn first_node(&self) -> Option<PublicKey>
Returns the first node in the path.
Trait Implementations§
§impl Clone for OnionMessagePath
impl Clone for OnionMessagePath
§fn clone(&self) -> OnionMessagePath
fn clone(&self) -> OnionMessagePath
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for OnionMessagePath
impl RefUnwindSafe for OnionMessagePath
impl Send for OnionMessagePath
impl Sync for OnionMessagePath
impl Unpin for OnionMessagePath
impl UnwindSafe for OnionMessagePath
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
Mutably borrows from an owned value. Read more
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>
Wrap the input message
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>
Wrap the input message
T
in a tonic::Request