[][src]Struct kuska_handshake::Header

pub struct Header { /* fields omitted */ }

The header of a message in the boxstream.

Implementations

impl Header[src]

pub fn from_bytes(buf: &[u8; 18]) -> Self[src]

Decodes MSG_HEADER_DEC_LEN length byte array to build a Header.

pub fn from_slice(buf: &[u8]) -> Option<Self>[src]

Decodes MSG_HEADER_DEC_LEN bytes from a slice to build a Header.

pub fn to_bytes(&self) -> [u8; 18][src]

Encodes the Header to a byte array.

Trait Implementations

impl Debug for Header[src]

impl PartialEq<Header> for Header[src]

impl StructuralPartialEq for Header[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, 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.