[][src]Struct netproto::frames::IPv6Frame

pub struct IPv6Frame<'p> {
    pub version: u8,
    pub traffic_class: u8,
    pub flow_label: u32,
    pub payload_length: u16,
    pub next_header: IPProtocolType,
    pub hop_limit: u8,
    pub src_address: IPv6Address,
    pub dst_address: IPv6Address,
    pub payload: &'p [u8],
}

Fields

version: u8traffic_class: u8flow_label: u32payload_length: u16next_header: IPProtocolTypehop_limit: u8src_address: IPv6Addressdst_address: IPv6Addresspayload: &'p [u8]

Methods

impl<'p> IPv6Frame<'p>[src]

pub fn new(bytes: &[u8]) -> IPv6Frame[src]

Produces a new IPv6Frame

pub fn as_string(&self) -> String[src]

Returns the string representation of an IPv6Frame

pub fn next_header(&self) -> &IPProtocolType[src]

Returns the IPProtocolType contained in an IPv6Frame

pub fn payload(&self) -> &[u8][src]

Returns the payload contained in an IPv6Frame

Auto Trait Implementations

impl<'p> Send for IPv6Frame<'p>

impl<'p> Sync for IPv6Frame<'p>

Blanket Implementations

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.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]