pub struct TrampolineContext {
pub remaining_trampoline_onion: Vec<u8>,
pub previous_tlcs: Vec<PrevTlcInfo>,
pub hash_algorithm: HashAlgorithm,
}Expand description
Context for trampoline routing payments.
Fields§
§remaining_trampoline_onion: Vec<u8>Optional final trampoline onion packet.
When provided, this onion packet will be attached to the payload of the next hop (which in this context is the next trampoline node).
previous_tlcs: Vec<PrevTlcInfo>Previous TLCs information for the payment session. This is used to associate the outgoing payment with the incoming payment.
hash_algorithm: HashAlgorithmHash algorithm used for the payment.
Trait Implementations§
Source§impl Clone for TrampolineContext
impl Clone for TrampolineContext
Source§fn clone(&self) -> TrampolineContext
fn clone(&self) -> TrampolineContext
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 TrampolineContext
impl Debug for TrampolineContext
Source§impl Default for TrampolineContext
impl Default for TrampolineContext
Source§fn default() -> TrampolineContext
fn default() -> TrampolineContext
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for TrampolineContext
impl<'de> Deserialize<'de> for TrampolineContext
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
Auto Trait Implementations§
impl Freeze for TrampolineContext
impl RefUnwindSafe for TrampolineContext
impl Send for TrampolineContext
impl Sync for TrampolineContext
impl Unpin for TrampolineContext
impl UnsafeUnpin for TrampolineContext
impl UnwindSafe for TrampolineContext
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