Struct linux_raw_sys::general::ipv6hdr
source · [−]#[repr(C)]pub struct ipv6hdr {
pub _bitfield_align_1: [u8; 0],
pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1]>,
pub flow_lbl: [__u8; 3],
pub payload_len: __be16,
pub nexthdr: __u8,
pub hop_limit: __u8,
pub saddr: in6_addr,
pub daddr: in6_addr,
}Fields
_bitfield_align_1: [u8; 0]_bitfield_1: __BindgenBitfieldUnit<[u8; 1]>flow_lbl: [__u8; 3]payload_len: __be16nexthdr: __u8hop_limit: __u8saddr: in6_addrdaddr: in6_addrImplementations
sourceimpl ipv6hdr
impl ipv6hdr
pub fn priority(&self) -> __u8
pub fn set_priority(&mut self, val: __u8)
pub fn version(&self) -> __u8
pub fn set_version(&mut self, val: __u8)
pub fn new_bitfield_1(
priority: __u8,
version: __u8
) -> __BindgenBitfieldUnit<[u8; 1]>
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for ipv6hdr
impl Send for ipv6hdr
impl Sync for ipv6hdr
impl Unpin for ipv6hdr
impl UnwindSafe for ipv6hdr
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more