[][src]Enum portus::serialize::Msg

pub enum Msg<'a> {
    Cr(Msg),
    Ms(Msg),
    Ins(Msg),
    Other(RawMsg<'a>),
}

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

Cr(Msg)Ms(Msg)Ins(Msg)Other(RawMsg<'a>)

Methods

impl<'a> Msg<'a>[src]

Trait Implementations

impl<'a> PartialEq<Msg<'a>> for Msg<'a>[src]

impl<'a> Debug for Msg<'a>[src]

Auto Trait Implementations

impl<'a> Send for Msg<'a>

impl<'a> Sync for Msg<'a>

Blanket Implementations

impl<T> From for T[src]

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> SendSyncUnwindSafe for T where
    T: Send + Sync + UnwindSafe + ?Sized
[src]