pub struct PrevTlcInfo {
pub prev_channel_id: Hash256,
pub prev_tlc_id: u64,
pub forwarding_fee: u128,
pub shared_secret: Option<[u8; 32]>,
}Expand description
When we are forwarding a TLC, we need to know the previous TLC information. This struct keeps the information of the previous TLC.
Fields§
§prev_channel_id: Hash256§prev_tlc_id: u64The TLC is always a received TLC because we are forwarding it.
forwarding_fee: u128Implementations§
Trait Implementations§
Source§impl Clone for PrevTlcInfo
impl Clone for PrevTlcInfo
Source§fn clone(&self) -> PrevTlcInfo
fn clone(&self) -> PrevTlcInfo
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PrevTlcInfo
impl Debug for PrevTlcInfo
Source§impl<'de> Deserialize<'de> for PrevTlcInfo
impl<'de> Deserialize<'de> for PrevTlcInfo
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Hash for PrevTlcInfo
impl Hash for PrevTlcInfo
Source§impl PartialEq for PrevTlcInfo
impl PartialEq for PrevTlcInfo
Source§impl Serialize for PrevTlcInfo
impl Serialize for PrevTlcInfo
impl Copy for PrevTlcInfo
impl Eq for PrevTlcInfo
impl StructuralPartialEq for PrevTlcInfo
Auto Trait Implementations§
impl Freeze for PrevTlcInfo
impl RefUnwindSafe for PrevTlcInfo
impl Send for PrevTlcInfo
impl Sync for PrevTlcInfo
impl Unpin for PrevTlcInfo
impl UnsafeUnpin for PrevTlcInfo
impl UnwindSafe for PrevTlcInfo
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