pub enum PeeledOnion<T>where
T: OnionMessageContents,{
Forward(PublicKey, OnionMessage),
Receive(ParsedOnionMessageContents<T>, Option<[u8; 32]>, Option<BlindedPath>),
}
Expand description
A processed incoming onion message, containing either a Forward (another onion message) or a Receive payload with decrypted contents.
Variants§
Forward(PublicKey, OnionMessage)
Forwarded onion, with the next node id and a new onion
Receive(ParsedOnionMessageContents<T>, Option<[u8; 32]>, Option<BlindedPath>)
Received onion message, with decrypted contents, path_id, and reply path
Auto 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§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request