[−][src]Struct netproto::frames::IPv6Frame
Fields
version: u8
traffic_class: u8
flow_label: u32
payload_length: u16
next_header: IPProtocolType
hop_limit: u8
src_address: IPv6Address
dst_address: IPv6Address
payload: &'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
Blanket Implementations
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.
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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,