[][src]Trait pnet_packet::util::Octets

pub trait Octets {
    type Output;
    fn octets(&self) -> Self::Output;
}

Convert a value to a byte array.

Associated Types

type Output

Output type - bytes array.

Loading content...

Required methods

fn octets(&self) -> Self::Output

Return a value as bytes (big-endian order).

Loading content...

Implementations on Foreign Types

impl Octets for u64[src]

type Output = [u8; 8]

impl Octets for u32[src]

type Output = [u8; 4]

impl Octets for u16[src]

type Output = [u8; 2]

impl Octets for u8[src]

type Output = [u8; 1]

Loading content...

Implementors

Loading content...