pub struct AddTlcCommand {
pub amount: u128,
pub payment_hash: Hash256,
pub attempt_id: Option<u64>,
pub expiry: u64,
pub hash_algorithm: HashAlgorithm,
pub onion_packet: Option<PaymentOnionPacket>,
pub shared_secret: [u8; 32],
pub is_trampoline_hop: bool,
pub previous_tlc: Option<PrevTlcInfo>,
}Expand description
Command to add a new TLC to a channel.
Fields§
§amount: u128§payment_hash: Hash256§attempt_id: Option<u64>The attempt id associated with the TLC.
expiry: u64§hash_algorithm: HashAlgorithm§onion_packet: Option<PaymentOnionPacket>Onion packet for the next node.
Shared secret used in forwarding. Save it for outbound (offered) TLC to backward errors. Use all zeros when no shared secrets are available.
is_trampoline_hop: boolWhether this outbound TLC is the trampoline-boundary hop.
previous_tlc: Option<PrevTlcInfo>Trait Implementations§
Source§impl Clone for AddTlcCommand
impl Clone for AddTlcCommand
Source§fn clone(&self) -> AddTlcCommand
fn clone(&self) -> AddTlcCommand
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 AddTlcCommand
impl Debug for AddTlcCommand
Source§impl<'de> Deserialize<'de> for AddTlcCommand
impl<'de> Deserialize<'de> for AddTlcCommand
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 AddTlcCommand
impl Hash for AddTlcCommand
Source§impl PartialEq for AddTlcCommand
impl PartialEq for AddTlcCommand
Source§impl Serialize for AddTlcCommand
impl Serialize for AddTlcCommand
impl Eq for AddTlcCommand
impl StructuralPartialEq for AddTlcCommand
Auto Trait Implementations§
impl Freeze for AddTlcCommand
impl RefUnwindSafe for AddTlcCommand
impl Send for AddTlcCommand
impl Sync for AddTlcCommand
impl Unpin for AddTlcCommand
impl UnsafeUnpin for AddTlcCommand
impl UnwindSafe for AddTlcCommand
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