Struct linux_uapi::x86_64::ip6t_replace
source · #[repr(C)]pub struct ip6t_replace {
pub name: [c_char; 32],
pub valid_hooks: c_uint,
pub num_entries: c_uint,
pub size: c_uint,
pub hook_entry: [c_uint; 5],
pub underflow: [c_uint; 5],
pub num_counters: c_uint,
pub counters: uref<xt_counters>,
pub entries: __IncompleteArrayField<ip6t_entry>,
}
Fields§
§name: [c_char; 32]
§valid_hooks: c_uint
§num_entries: c_uint
§size: c_uint
§hook_entry: [c_uint; 5]
§underflow: [c_uint; 5]
§num_counters: c_uint
§counters: uref<xt_counters>
§entries: __IncompleteArrayField<ip6t_entry>
Trait Implementations§
source§impl Default for ip6t_replace
impl Default for ip6t_replace
source§impl FromBytes for ip6t_replacewhere
[c_char; 32]: FromBytes,
c_uint: FromBytes,
[c_uint; 5]: FromBytes,
uref<xt_counters>: FromBytes,
__IncompleteArrayField<ip6t_entry>: FromBytes,
impl FromBytes for ip6t_replacewhere
[c_char; 32]: FromBytes,
c_uint: FromBytes,
[c_uint; 5]: FromBytes,
uref<xt_counters>: FromBytes,
__IncompleteArrayField<ip6t_entry>: 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_replacewhere
[c_char; 32]: FromZeros,
c_uint: FromZeros,
[c_uint; 5]: FromZeros,
uref<xt_counters>: FromZeros,
__IncompleteArrayField<ip6t_entry>: FromZeros,
impl FromZeros for ip6t_replacewhere
[c_char; 32]: FromZeros,
c_uint: FromZeros,
[c_uint; 5]: FromZeros,
uref<xt_counters>: FromZeros,
__IncompleteArrayField<ip6t_entry>: FromZeros,
source§impl IntoBytes for ip6t_replacewhere
[c_char; 32]: IntoBytes,
c_uint: IntoBytes,
[c_uint; 5]: IntoBytes,
uref<xt_counters>: IntoBytes,
__IncompleteArrayField<ip6t_entry>: IntoBytes,
HasPadding<ip6t_replace, { _ }>: ShouldBe<false>,
impl IntoBytes for ip6t_replacewhere
[c_char; 32]: IntoBytes,
c_uint: IntoBytes,
[c_uint; 5]: IntoBytes,
uref<xt_counters>: IntoBytes,
__IncompleteArrayField<ip6t_entry>: IntoBytes,
HasPadding<ip6t_replace, { _ }>: ShouldBe<false>,
Auto Trait Implementations§
impl Freeze for ip6t_replace
impl RefUnwindSafe for ip6t_replace
impl Send for ip6t_replace
impl Sync for ip6t_replace
impl Unpin for ip6t_replace
impl UnwindSafe for ip6t_replace
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