[][src]Trait pnet::packet::util::Octets

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

Convert a value to a byte array.

Associated Types

type Output[src]

Output type - bytes array.

Loading content...

Required methods

pub fn octets(&self) -> Self::Output[src]

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

Loading content...

Implementations on Foreign Types

impl Octets for u8[src]

type Output = [u8; 1]

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]

Loading content...

Implementors

Loading content...