Enum lightning::blinded_path::Direction
source · pub enum Direction {
NodeOne,
NodeTwo,
}
Expand description
The side of a channel that is the IntroductionNode
in a BlindedPath
. BOLT 7 defines
which nodes is which in the ChannelAnnouncement
message.
Variants§
NodeOne
The lesser node id when compared lexicographically in ascending order.
NodeTwo
The greater node id when compared lexicographically in ascending order.
Implementations§
Trait Implementations§
source§impl PartialEq for Direction
impl PartialEq for Direction
impl Copy for Direction
impl Eq for Direction
impl StructuralPartialEq for Direction
Auto Trait Implementations§
impl Freeze for Direction
impl RefUnwindSafe for Direction
impl Send for Direction
impl Sync for Direction
impl Unpin for Direction
impl UnwindSafe for Direction
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