pub struct TrampolineOnionData;Expand description
Helper to store the trampoline onion packet inside custom_records.
This embeds the trampoline onion bytes as a custom record entry so that the molecule
PaymentHopData schema stays at 7 fields — matching v0.6.1 — and old onion packets
created before trampoline support can still be deserialized.
Implementations§
Source§impl TrampolineOnionData
impl TrampolineOnionData
Sourcepub const CUSTOM_RECORD_KEY: u32
pub const CUSTOM_RECORD_KEY: u32
Custom record key for embedded trampoline onion data.
BasicMppPaymentData uses USER_CUSTOM_RECORDS_MAX_INDEX + 1 (65536).
pub fn write(data: Vec<u8>, custom_records: &mut PaymentCustomRecords)
pub fn read(custom_records: &PaymentCustomRecords) -> Option<Vec<u8>>
Auto Trait Implementations§
impl Freeze for TrampolineOnionData
impl RefUnwindSafe for TrampolineOnionData
impl Send for TrampolineOnionData
impl Sync for TrampolineOnionData
impl Unpin for TrampolineOnionData
impl UnsafeUnpin for TrampolineOnionData
impl UnwindSafe for TrampolineOnionData
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