Struct lightning::ln::PaymentPreimage
source · [−]Expand description
payment_preimage type, use to route payment between hop (C-not exported) as we just use [u8; 32] directly
Tuple Fields
0: [u8; 32]
Trait Implementations
sourceimpl Clone for PaymentPreimage
impl Clone for PaymentPreimage
sourcefn clone(&self) -> PaymentPreimage
fn clone(&self) -> PaymentPreimage
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for PaymentPreimage
impl Debug for PaymentPreimage
sourceimpl Hash for PaymentPreimage
impl Hash for PaymentPreimage
sourceimpl PartialEq<PaymentPreimage> for PaymentPreimage
impl PartialEq<PaymentPreimage> for PaymentPreimage
sourcefn eq(&self, other: &PaymentPreimage) -> bool
fn eq(&self, other: &PaymentPreimage) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &PaymentPreimage) -> bool
fn ne(&self, other: &PaymentPreimage) -> bool
This method tests for !=
.
sourceimpl Readable for PaymentPreimage
impl Readable for PaymentPreimage
sourceimpl Writeable for PaymentPreimage
impl Writeable for PaymentPreimage
sourcefn encode(&self) -> Vec<u8>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
A: Allocator,
fn encode(&self) -> Vec<u8>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
A: Allocator,
A: Allocator,
Writes self out to a Vec
sourcefn serialized_length(&self) -> usize
fn serialized_length(&self) -> usize
Gets the length of this object after it has been serialized. This can be overridden to optimize cases where we prepend an object with its length. Read more
impl Copy for PaymentPreimage
impl Eq for PaymentPreimage
impl StructuralEq for PaymentPreimage
impl StructuralPartialEq for PaymentPreimage
Auto Trait Implementations
impl RefUnwindSafe for PaymentPreimage
impl Send for PaymentPreimage
impl Sync for PaymentPreimage
impl Unpin for PaymentPreimage
impl UnwindSafe for PaymentPreimage
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more