pub enum PeeledOnion<T: OnionMessageContents> {
Forward(NextMessageHop, OnionMessage),
Receive(ParsedOnionMessageContents<T>, Option<MessageContext>, 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
Receive(ParsedOnionMessageContents<T>, Option<MessageContext>, Option<BlindedMessagePath>)
Received 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