Struct linux_uapi::x86_64::ip6t_ip6
source · #[repr(C)]pub struct ip6t_ip6 {Show 13 fields
pub src: in6_addr,
pub dst: in6_addr,
pub smsk: in6_addr,
pub dmsk: in6_addr,
pub iniface: [c_char; 16],
pub outiface: [c_char; 16],
pub iniface_mask: [c_uchar; 16],
pub outiface_mask: [c_uchar; 16],
pub proto: __u16,
pub tos: __u8,
pub flags: __u8,
pub invflags: __u8,
pub __bindgen_padding_0: [u8; 3],
}
Fields§
§src: in6_addr
§dst: in6_addr
§smsk: in6_addr
§dmsk: in6_addr
§iniface: [c_char; 16]
§outiface: [c_char; 16]
§iniface_mask: [c_uchar; 16]
§outiface_mask: [c_uchar; 16]
§proto: __u16
§tos: __u8
§flags: __u8
§invflags: __u8
§__bindgen_padding_0: [u8; 3]
Trait Implementations§
source§impl FromBytes for ip6t_ip6
impl FromBytes for ip6t_ip6
§fn slice_from_prefix(bytes: &[u8], count: usize) -> Option<(&[Self], &[u8])>where
Self: Sized + NoCell,
fn slice_from_prefix(bytes: &[u8], count: usize) -> Option<(&[Self], &[u8])>where
Self: Sized + NoCell,
Interprets the prefix of the given
bytes
as a &[Self]
with length
equal to count
without copying. Read more§fn slice_from_suffix(bytes: &[u8], count: usize) -> Option<(&[u8], &[Self])>where
Self: Sized + NoCell,
fn slice_from_suffix(bytes: &[u8], count: usize) -> Option<(&[u8], &[Self])>where
Self: Sized + NoCell,
Interprets the suffix of the given
bytes
as a &[Self]
with length
equal to count
without copying. Read more§fn mut_slice_from_prefix(
bytes: &mut [u8],
count: usize
) -> Option<(&mut [Self], &mut [u8])>where
Self: Sized + IntoBytes + NoCell,
fn mut_slice_from_prefix(
bytes: &mut [u8],
count: usize
) -> Option<(&mut [Self], &mut [u8])>where
Self: Sized + IntoBytes + NoCell,
Interprets the prefix of the given
bytes
as a &mut [Self]
with length
equal to count
without copying. Read more§fn mut_slice_from_suffix(
bytes: &mut [u8],
count: usize
) -> Option<(&mut [u8], &mut [Self])>where
Self: Sized + IntoBytes + NoCell,
fn mut_slice_from_suffix(
bytes: &mut [u8],
count: usize
) -> Option<(&mut [u8], &mut [Self])>where
Self: Sized + IntoBytes + NoCell,
Interprets the suffix of the given
bytes
as a &mut [Self]
with length
equal to count
without copying. Read more§fn read_from_prefix(bytes: &[u8]) -> Option<Self>where
Self: Sized,
fn read_from_prefix(bytes: &[u8]) -> Option<Self>where
Self: Sized,
source§impl IntoBytes for ip6t_ip6
impl IntoBytes for ip6t_ip6
impl Copy for ip6t_ip6
Auto Trait Implementations§
impl Freeze for ip6t_ip6
impl RefUnwindSafe for ip6t_ip6
impl Send for ip6t_ip6
impl Sync for ip6t_ip6
impl Unpin for ip6t_ip6
impl UnwindSafe for ip6t_ip6
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