[][src]Struct wayk_proto::packet::NowPacket

pub struct NowPacket<'a> {
    pub header: NowHeader,
    pub body: NowBody<'a>,
}

A now packet.

See NowRawPacket if you would rather decode by hand.

Fields

header: NowHeaderbody: NowBody<'a>

Implementations

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

pub fn from_message<Message: Into<NowMessage<'a>>>(message: Message) -> Self[src]

pub fn from_virt_channel<Channel: Into<NowVirtualChannel<'a>>>(
    virt_channel: Channel,
    channel_id: u8
) -> Self
[src]

pub fn read_from<'dec: 'a, R: Read>(
    reader: &mut R,
    buffer: &'dec mut Vec<u8>,
    channels_ctx: &VirtChannelsCtx
) -> Result<Self>
[src]

pub fn decode_from<'dec: 'a>(
    header: NowHeader,
    buffer: &'dec [u8],
    channels_ctx: &VirtChannelsCtx
) -> Result<Self>
[src]

Trait Implementations

impl<'a> Clone for NowPacket<'a>[src]

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

impl<'_> Encode for NowPacket<'_>[src]

impl<'a, Message> From<Message> for NowPacket<'a> where
    Message: Into<NowMessage<'a>>, 
[src]

Auto Trait Implementations

impl<'a> RefUnwindSafe for NowPacket<'a>

impl<'a> Send for NowPacket<'a>

impl<'a> Sync for NowPacket<'a>

impl<'a> Unpin for NowPacket<'a>

impl<'a> UnwindSafe for NowPacket<'a>

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.