#[repr(C, packed)]pub struct Ip6Header {
pub hop_limit: u8,
/* private fields */
}
Expand description
IPv6 header: https://tools.ietf.org/html/rfc2460#section-3
Fields§
§hop_limit: u8
Hop limit, equivalent of IPv4 TTL.
Implementations§
source§impl Ip6Header
impl Ip6Header
sourcepub fn traffic_class(&self) -> u8
pub fn traffic_class(&self) -> u8
IPv6 traffic class: service class + ECN bits
sourcepub fn flow_label(&self) -> u32
pub fn flow_label(&self) -> u32
IPv6 flow label
sourcepub fn payload_len(&self) -> u16
pub fn payload_len(&self) -> u16
Length of the payload in bytes, starting at the end of this IPv6 header (including extension headers).
Auto Trait Implementations§
impl RefUnwindSafe for Ip6Header
impl Send for Ip6Header
impl Sync for Ip6Header
impl Unpin for Ip6Header
impl UnwindSafe for Ip6Header
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more