Struct lightning::ln::PaymentHash
source · [−]Expand description
payment_hash type, use to cross-lock hop (C-not exported) as we just use [u8; 32] directly
Tuple Fields
0: [u8; 32]
Trait Implementations
sourceimpl Clone for PaymentHash
impl Clone for PaymentHash
sourcefn clone(&self) -> PaymentHash
fn clone(&self) -> PaymentHash
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 PaymentHash
impl Debug for PaymentHash
sourceimpl Hash for PaymentHash
impl Hash for PaymentHash
sourceimpl PartialEq<PaymentHash> for PaymentHash
impl PartialEq<PaymentHash> for PaymentHash
sourcefn eq(&self, other: &PaymentHash) -> bool
fn eq(&self, other: &PaymentHash) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &PaymentHash) -> bool
fn ne(&self, other: &PaymentHash) -> bool
This method tests for !=
.
sourceimpl Readable for PaymentHash
impl Readable for PaymentHash
sourceimpl Writeable for PaymentHash
impl Writeable for PaymentHash
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 PaymentHash
impl Eq for PaymentHash
impl StructuralEq for PaymentHash
impl StructuralPartialEq for PaymentHash
Auto Trait Implementations
impl RefUnwindSafe for PaymentHash
impl Send for PaymentHash
impl Sync for PaymentHash
impl Unpin for PaymentHash
impl UnwindSafe for PaymentHash
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