pub enum PeeledOnion<T: OnionMessageContents> {
Forward(NextMessageHop, OnionMessage),
Offers(OffersMessage, Option<OffersContext>, Option<BlindedMessagePath>),
AsyncPayments(AsyncPaymentsMessage, AsyncPaymentsContext, Option<BlindedMessagePath>),
DNSResolver(DNSResolverMessage, Option<DNSResolverContext>, Option<BlindedMessagePath>),
Custom(T, Option<Vec<u8>>, Option<BlindedMessagePath>),
}Expand description
A processed incoming onion message, containing either a Forward (another onion message) or a Receive payload with decrypted contents.
Variants§
Forward(NextMessageHop, OnionMessage)
Forwarded onion, with the next node id and a new onion
Offers(OffersMessage, Option<OffersContext>, Option<BlindedMessagePath>)
Received offers onion message, with decrypted contents, context, and reply path
AsyncPayments(AsyncPaymentsMessage, AsyncPaymentsContext, Option<BlindedMessagePath>)
Received async payments onion message, with decrypted contents, context, and reply path
DNSResolver(DNSResolverMessage, Option<DNSResolverContext>, Option<BlindedMessagePath>)
Received DNS resolver onion message, with decrypted contents, context, and reply path
Custom(T, Option<Vec<u8>>, Option<BlindedMessagePath>)
Received custom onion message, with decrypted contents, context, and reply path
Trait Implementations§
Source§impl<T: Clone + OnionMessageContents> Clone for PeeledOnion<T>
impl<T: Clone + OnionMessageContents> Clone for PeeledOnion<T>
Source§fn clone(&self) -> PeeledOnion<T>
fn clone(&self) -> PeeledOnion<T>
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 moreAuto Trait Implementations§
impl<T> Freeze for PeeledOnion<T>where
T: Freeze,
impl<T> RefUnwindSafe for PeeledOnion<T>where
T: RefUnwindSafe,
impl<T> Send for PeeledOnion<T>where
T: Send,
impl<T> Sync for PeeledOnion<T>where
T: Sync,
impl<T> Unpin for PeeledOnion<T>where
T: Unpin,
impl<T> UnwindSafe for PeeledOnion<T>where
T: UnwindSafe,
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