pub enum Msg<'a> {
Cr(Msg),
Ms(Msg),
Ins(Msg),
Rdy(Msg),
Other(RawMsg<'a>),
}
Expand description
Message type for deserialization. Reads message type in the header of the input buffer and returns a Msg of the corresponding type. If the message type is unkown, returns a wrapper with direct access to the message bytes.
Variants§
Implementations§
Trait Implementations§
source§impl<'a> PartialEq<Msg<'a>> for Msg<'a>
impl<'a> PartialEq<Msg<'a>> for Msg<'a>
impl<'a> StructuralPartialEq for Msg<'a>
Auto Trait Implementations§
impl<'a> RefUnwindSafe for Msg<'a>
impl<'a> Send for Msg<'a>
impl<'a> Sync for Msg<'a>
impl<'a> Unpin for Msg<'a>
impl<'a> UnwindSafe for Msg<'a>
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