pub struct UpdateAddHTLC {
pub channel_id: [u8; 32],
pub htlc_id: u64,
pub amount_msat: u64,
pub payment_hash: PaymentHash,
pub cltv_expiry: u32,
/* private fields */
}
Expand description
An update_add_htlc message to be sent or received from a peer
Fields
channel_id: [u8; 32]
The channel ID
htlc_id: u64
The HTLC ID
amount_msat: u64
The HTLC value in milli-satoshi
payment_hash: PaymentHash
The payment hash, the pre-image of which controls HTLC redemption
cltv_expiry: u32
The expiry height of the HTLC
Trait Implementations
sourceimpl Clone for UpdateAddHTLC
impl Clone for UpdateAddHTLC
sourcefn clone(&self) -> UpdateAddHTLC
fn clone(&self) -> UpdateAddHTLC
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 UpdateAddHTLC
impl Debug for UpdateAddHTLC
sourceimpl PartialEq<UpdateAddHTLC> for UpdateAddHTLC
impl PartialEq<UpdateAddHTLC> for UpdateAddHTLC
sourcefn eq(&self, other: &UpdateAddHTLC) -> bool
fn eq(&self, other: &UpdateAddHTLC) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &UpdateAddHTLC) -> bool
fn ne(&self, other: &UpdateAddHTLC) -> bool
This method tests for !=
.
sourceimpl Readable for UpdateAddHTLC
impl Readable for UpdateAddHTLC
sourceimpl Writeable for UpdateAddHTLC
impl Writeable for UpdateAddHTLC
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 encode_with_len(&self) -> Vec<u8>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
A: Allocator,
fn encode_with_len(&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 StructuralPartialEq for UpdateAddHTLC
Auto Trait Implementations
impl RefUnwindSafe for UpdateAddHTLC
impl Send for UpdateAddHTLC
impl Sync for UpdateAddHTLC
impl Unpin for UpdateAddHTLC
impl UnwindSafe for UpdateAddHTLC
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> MaybeReadable for T where
T: Readable,
impl<T> MaybeReadable for T where
T: Readable,
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more