[][src]Enum wayk_proto::header::NowHeader

pub enum NowHeader {
    Short(NowShortHeader),
    Long(NowLongHeader),
}

Variants

Implementations

impl NowHeader[src]

pub fn new(body_type: BodyType, body_len: u32) -> Self[src]

pub fn new_with_msg_type(msg_type: MessageType, body_len: u32) -> Self[src]

pub fn new_with_virt_channel(channel_id: u8, body_len: u32) -> Self[src]

pub fn read_from<R: Read>(reader: &mut R) -> Result<Self>[src]

pub fn borrow_short(&self) -> Option<&NowShortHeader>[src]

pub fn into_short(self) -> Option<NowShortHeader>[src]

pub fn borrow_long(&self) -> Option<&NowLongHeader>[src]

pub fn into_long(self) -> Option<NowLongHeader>[src]

pub fn borrow_abstract(&self) -> &dyn AbstractNowHeader[src]

pub fn into_abstract(self) -> Box<dyn AbstractNowHeader>[src]

Trait Implementations

impl AbstractNowHeader for NowHeader[src]

impl Clone for NowHeader[src]

impl Debug for NowHeader[src]

impl<'_> Decode<'_> for NowHeader[src]

impl Encode for NowHeader[src]

Auto Trait Implementations

Blanket Implementations

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

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

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

impl<T> From<T> for T[src]

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

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

The type returned in the event of a conversion error.