Enum lightning::onion_message::messenger::Destination
source · pub enum Destination {
Node(PublicKey),
BlindedPath(BlindedPath),
}
Expand description
The destination of an onion message.
Variants§
Node(PublicKey)
We’re sending this onion message to a node.
BlindedPath(BlindedPath)
We’re sending this onion message to a blinded path.
Implementations§
source§impl Destination
impl Destination
sourcepub fn resolve(&mut self, network_graph: &ReadOnlyNetworkGraph<'_>)
pub fn resolve(&mut self, network_graph: &ReadOnlyNetworkGraph<'_>)
Attempts to resolve the IntroductionNode::DirectedShortChannelId
of a
Destination::BlindedPath
to a IntroductionNode::NodeId
, if applicable, using the
provided ReadOnlyNetworkGraph
.
Trait Implementations§
source§impl Clone for Destination
impl Clone for Destination
source§fn clone(&self) -> Destination
fn clone(&self) -> Destination
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 moresource§impl Debug for Destination
impl Debug for Destination
source§impl Hash for Destination
impl Hash for Destination
source§impl PartialEq for Destination
impl PartialEq for Destination
source§fn eq(&self, other: &Destination) -> bool
fn eq(&self, other: &Destination) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for Destination
impl StructuralPartialEq for Destination
Auto Trait Implementations§
impl Freeze for Destination
impl RefUnwindSafe for Destination
impl Send for Destination
impl Sync for Destination
impl Unpin for Destination
impl UnwindSafe for Destination
Blanket Implementations§
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