pub struct Envelope<M = AnyMessage> { /* private fields */ }Implementations§
Source§impl<M> Envelope<M>where
M: Message,
impl<M> Envelope<M>where
M: Message,
pub fn into_erased(self) -> Envelope<AnyMessage>
Source§impl<M> Envelope<M>
impl<M> Envelope<M>
pub fn new(header: EnvelopeHeader, message: M) -> Self
pub fn info(&self) -> &EnvelopeHeader
Source§impl Envelope<AnyMessage>
impl Envelope<AnyMessage>
Trait Implementations§
Auto Trait Implementations§
impl<M> Freeze for Envelope<M>where
M: Freeze,
impl<M> RefUnwindSafe for Envelope<M>where
M: RefUnwindSafe,
impl<M> Send for Envelope<M>where
M: Send,
impl<M> Sync for Envelope<M>where
M: Sync,
impl<M> Unpin for Envelope<M>where
M: Unpin,
impl<M> UnwindSafe for Envelope<M>where
M: 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