Struct lnp::message::UpdateAddHtlc [−][src]
Fields
channel_id: ChannelId
The channel ID
htlc_id: u64
The HTLC ID
amount_msat: u64
The HTLC value in milli-satoshi
payment_hash: HashLock
The payment hash, the pre-image of which controls HTLC redemption
cltv_expiry: u32
The expiry height of the HTLC
onion_routing_packet: OnionPacket
An obfuscated list of hops and instructions for each hop along the path. It commits to the HTLC by setting the payment_hash as associated data, i.e. includes the payment_hash in the computation of HMACs. This prevents replay attacks that would reuse a previous onion_routing_packet with a different payment_hash.
asset_id: Option<AssetId>
RGB Extension: TLV
Trait Implementations
impl Clone for UpdateAddHtlc
[src]
fn clone(&self) -> UpdateAddHtlc
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for UpdateAddHtlc
[src]
impl Display for UpdateAddHtlc
[src]
impl Eq for UpdateAddHtlc
[src]
impl LightningDecode for UpdateAddHtlc
[src]
fn lightning_decode<D: Read>(d: D) -> Result<Self, Error>
[src]
pub fn lightning_deserialize(data: &impl AsRef<[u8]>) -> Result<Self, Error>
[src]
impl LightningEncode for UpdateAddHtlc
[src]
fn lightning_encode<E: Write>(&self, e: E) -> Result<usize, Error>
[src]
pub fn lightning_serialize(&self) -> Vec<u8, Global>
[src]
impl PartialEq<UpdateAddHtlc> for UpdateAddHtlc
[src]
fn eq(&self, other: &UpdateAddHtlc) -> bool
[src]
fn ne(&self, other: &UpdateAddHtlc) -> bool
[src]
impl StrictDecode for UpdateAddHtlc
[src]
fn strict_decode<D: Read>(d: D) -> Result<Self, Error>
[src]
pub fn strict_deserialize(data: impl AsRef<[u8]>) -> Result<Self, Error>
[src]
impl StrictEncode for UpdateAddHtlc
[src]
fn strict_encode<E: Write>(&self, e: E) -> Result<usize, Error>
[src]
pub fn strict_serialize(&self) -> Result<Vec<u8, Global>, Error>
[src]
impl StructuralEq for UpdateAddHtlc
[src]
impl StructuralPartialEq for UpdateAddHtlc
[src]
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
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,