Enum ParsedOnionMessageContents
pub enum ParsedOnionMessageContents<T>where
T: OnionMessageContents,{
Offers(OffersMessage),
Custom(T),
}
Expand description
The contents of an OnionMessage
as read from the wire.
Variants§
Offers(OffersMessage)
A message related to BOLT 12 Offers.
Custom(T)
A custom onion message specified by the user.
Trait Implementations§
§impl<T> Debug for ParsedOnionMessageContents<T>where
T: Debug + OnionMessageContents,
impl<T> Debug for ParsedOnionMessageContents<T>where
T: Debug + OnionMessageContents,
§impl<T> OnionMessageContents for ParsedOnionMessageContents<T>where
T: OnionMessageContents,
impl<T> OnionMessageContents for ParsedOnionMessageContents<T>where
T: OnionMessageContents,
§impl<T> Writeable for ParsedOnionMessageContents<T>where
T: OnionMessageContents,
impl<T> Writeable for ParsedOnionMessageContents<T>where
T: OnionMessageContents,
Auto Trait Implementations§
impl<T> Freeze for ParsedOnionMessageContents<T>where
T: Freeze,
impl<T> RefUnwindSafe for ParsedOnionMessageContents<T>where
T: RefUnwindSafe,
impl<T> Send for ParsedOnionMessageContents<T>where
T: Send,
impl<T> Sync for ParsedOnionMessageContents<T>where
T: Sync,
impl<T> Unpin for ParsedOnionMessageContents<T>where
T: Unpin,
impl<T> UnwindSafe for ParsedOnionMessageContents<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