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