Struct linux_uapi::x86_64::ip6t_entry
source · #[repr(C)]pub struct ip6t_entry {
pub ipv6: ip6t_ip6,
pub nfcache: c_uint,
pub target_offset: __u16,
pub next_offset: __u16,
pub comefrom: c_uint,
pub __bindgen_padding_0: [u8; 4],
pub counters: xt_counters,
pub elems: __IncompleteArrayField<c_uchar>,
}
Fields§
§ipv6: ip6t_ip6
§nfcache: c_uint
§target_offset: __u16
§next_offset: __u16
§comefrom: c_uint
§__bindgen_padding_0: [u8; 4]
§counters: xt_counters
§elems: __IncompleteArrayField<c_uchar>
Trait Implementations§
source§impl Default for ip6t_entry
impl Default for ip6t_entry
source§impl FromBytes for ip6t_entrywhere
ip6t_ip6: FromBytes,
c_uint: FromBytes,
__u16: FromBytes,
[u8; 4]: FromBytes,
xt_counters: FromBytes,
__IncompleteArrayField<c_uchar>: FromBytes,
impl FromBytes for ip6t_entrywhere
ip6t_ip6: FromBytes,
c_uint: FromBytes,
__u16: FromBytes,
[u8; 4]: FromBytes,
xt_counters: FromBytes,
__IncompleteArrayField<c_uchar>: FromBytes,
§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 FromZeros for ip6t_entrywhere
ip6t_ip6: FromZeros,
c_uint: FromZeros,
__u16: FromZeros,
[u8; 4]: FromZeros,
xt_counters: FromZeros,
__IncompleteArrayField<c_uchar>: FromZeros,
impl FromZeros for ip6t_entrywhere
ip6t_ip6: FromZeros,
c_uint: FromZeros,
__u16: FromZeros,
[u8; 4]: FromZeros,
xt_counters: FromZeros,
__IncompleteArrayField<c_uchar>: FromZeros,
source§impl IntoBytes for ip6t_entrywhere
ip6t_ip6: IntoBytes,
c_uint: IntoBytes,
__u16: IntoBytes,
[u8; 4]: IntoBytes,
xt_counters: IntoBytes,
__IncompleteArrayField<c_uchar>: IntoBytes,
HasPadding<ip6t_entry, { _ }>: ShouldBe<false>,
impl IntoBytes for ip6t_entrywhere
ip6t_ip6: IntoBytes,
c_uint: IntoBytes,
__u16: IntoBytes,
[u8; 4]: IntoBytes,
xt_counters: IntoBytes,
__IncompleteArrayField<c_uchar>: IntoBytes,
HasPadding<ip6t_entry, { _ }>: ShouldBe<false>,
Auto Trait Implementations§
impl Freeze for ip6t_entry
impl RefUnwindSafe for ip6t_entry
impl Send for ip6t_entry
impl Sync for ip6t_entry
impl Unpin for ip6t_entry
impl UnwindSafe for ip6t_entry
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