[−][src]Struct kuska_handshake::Header
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
impl RefUnwindSafe for Header
[src]
impl Send for Header
[src]
impl Sync for Header
[src]
impl Unpin for Header
[src]
impl UnwindSafe for Header
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,