pub enum MaybeForwardedMessage {
ForwardedMessage(ForwardedMessage),
Message(Message),
}Variants§
ForwardedMessage(ForwardedMessage)
Message(Message)
Trait Implementations§
Source§impl Clone for MaybeForwardedMessage
impl Clone for MaybeForwardedMessage
Source§fn clone(&self) -> MaybeForwardedMessage
fn clone(&self) -> MaybeForwardedMessage
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 moreSource§impl Debug for MaybeForwardedMessage
impl Debug for MaybeForwardedMessage
Source§impl From<ForwardedMessage> for MaybeForwardedMessage
impl From<ForwardedMessage> for MaybeForwardedMessage
Source§fn from(msg: ForwardedMessage) -> Self
fn from(msg: ForwardedMessage) -> Self
Converts to this type from the input type.
Source§impl PartialEq for MaybeForwardedMessage
impl PartialEq for MaybeForwardedMessage
Source§impl TryRead<'_> for MaybeForwardedMessage
impl TryRead<'_> for MaybeForwardedMessage
Source§impl TryWrite for MaybeForwardedMessage
impl TryWrite for MaybeForwardedMessage
impl StructuralPartialEq for MaybeForwardedMessage
Auto Trait Implementations§
impl Freeze for MaybeForwardedMessage
impl RefUnwindSafe for MaybeForwardedMessage
impl Send for MaybeForwardedMessage
impl Sync for MaybeForwardedMessage
impl Unpin for MaybeForwardedMessage
impl UnwindSafe for MaybeForwardedMessage
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