Union linux_uapi::x86_64::__sk_buff__bindgen_ty_1
source · #[repr(C)]
pub union __sk_buff__bindgen_ty_1 {
pub flow_keys: uref<bpf_flow_keys>,
pub _bitfield_1: __BindgenBitfieldUnit<[u8; 8]>,
}
Fields§
§flow_keys: uref<bpf_flow_keys>
§_bitfield_1: __BindgenBitfieldUnit<[u8; 8]>
Implementations§
source§impl __sk_buff__bindgen_ty_1
impl __sk_buff__bindgen_ty_1
pub fn new_bitfield_1() -> __BindgenBitfieldUnit<[u8; 8]>
Trait Implementations§
source§impl Clone for __sk_buff__bindgen_ty_1
impl Clone for __sk_buff__bindgen_ty_1
source§fn clone(&self) -> __sk_buff__bindgen_ty_1
fn clone(&self) -> __sk_buff__bindgen_ty_1
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Default for __sk_buff__bindgen_ty_1
impl Default for __sk_buff__bindgen_ty_1
source§impl FromBytes for __sk_buff__bindgen_ty_1where
uref<bpf_flow_keys>: FromBytes + Immutable,
__BindgenBitfieldUnit<[u8; 8]>: FromBytes + Immutable,
impl FromBytes for __sk_buff__bindgen_ty_1where
uref<bpf_flow_keys>: FromBytes + Immutable,
__BindgenBitfieldUnit<[u8; 8]>: FromBytes + Immutable,
§fn ref_from_bytes(
source: &[u8],
) -> Result<&Self, ConvertError<AlignmentError<&[u8], Self>, SizeError<&[u8], Self>, Infallible>>where
Self: KnownLayout + Immutable,
fn ref_from_bytes(
source: &[u8],
) -> Result<&Self, ConvertError<AlignmentError<&[u8], Self>, SizeError<&[u8], Self>, Infallible>>where
Self: KnownLayout + Immutable,
Interprets the given bytes as a
&Self
without copying. Read more§fn ref_from_prefix(
source: &[u8],
) -> Result<(&Self, &[u8]), ConvertError<AlignmentError<&[u8], Self>, SizeError<&[u8], Self>, Infallible>>where
Self: KnownLayout + Immutable,
fn ref_from_prefix(
source: &[u8],
) -> Result<(&Self, &[u8]), ConvertError<AlignmentError<&[u8], Self>, SizeError<&[u8], Self>, Infallible>>where
Self: KnownLayout + Immutable,
Interprets the prefix of the given bytes as a
&Self
without copying. Read more§fn ref_from_suffix(
source: &[u8],
) -> Result<(&[u8], &Self), ConvertError<AlignmentError<&[u8], Self>, SizeError<&[u8], Self>, Infallible>>where
Self: Immutable + KnownLayout,
fn ref_from_suffix(
source: &[u8],
) -> Result<(&[u8], &Self), ConvertError<AlignmentError<&[u8], Self>, SizeError<&[u8], Self>, Infallible>>where
Self: Immutable + KnownLayout,
Interprets the suffix of the given bytes as a
&Self
without copying. Read more§fn mut_from_bytes(
source: &mut [u8],
) -> Result<&mut Self, ConvertError<AlignmentError<&mut [u8], Self>, SizeError<&mut [u8], Self>, Infallible>>where
Self: IntoBytes + KnownLayout,
fn mut_from_bytes(
source: &mut [u8],
) -> Result<&mut Self, ConvertError<AlignmentError<&mut [u8], Self>, SizeError<&mut [u8], Self>, Infallible>>where
Self: IntoBytes + KnownLayout,
Interprets the given bytes as a
&mut Self
without copying. Read more§fn mut_from_prefix(
source: &mut [u8],
) -> Result<(&mut Self, &mut [u8]), ConvertError<AlignmentError<&mut [u8], Self>, SizeError<&mut [u8], Self>, Infallible>>where
Self: IntoBytes + KnownLayout,
fn mut_from_prefix(
source: &mut [u8],
) -> Result<(&mut Self, &mut [u8]), ConvertError<AlignmentError<&mut [u8], Self>, SizeError<&mut [u8], Self>, Infallible>>where
Self: IntoBytes + KnownLayout,
Interprets the prefix of the given bytes as a
&mut Self
without
copying. Read more§fn mut_from_suffix(
source: &mut [u8],
) -> Result<(&mut [u8], &mut Self), ConvertError<AlignmentError<&mut [u8], Self>, SizeError<&mut [u8], Self>, Infallible>>where
Self: IntoBytes + KnownLayout,
fn mut_from_suffix(
source: &mut [u8],
) -> Result<(&mut [u8], &mut Self), ConvertError<AlignmentError<&mut [u8], Self>, SizeError<&mut [u8], Self>, Infallible>>where
Self: IntoBytes + KnownLayout,
Interprets the suffix of the given bytes as a
&mut Self
without
copying. Read more§fn read_from_bytes(source: &[u8]) -> Result<Self, SizeError<&[u8], Self>>where
Self: Sized,
fn read_from_bytes(source: &[u8]) -> Result<Self, SizeError<&[u8], Self>>where
Self: Sized,
Reads a copy of
Self
from the given bytes. Read more§fn read_from_prefix(
source: &[u8],
) -> Result<(Self, &[u8]), SizeError<&[u8], Self>>where
Self: Sized,
fn read_from_prefix(
source: &[u8],
) -> Result<(Self, &[u8]), SizeError<&[u8], Self>>where
Self: Sized,
Reads a copy of
Self
from the prefix of the given bytes. Read more§fn read_from_suffix(
source: &[u8],
) -> Result<(&[u8], Self), ConvertError<AlignmentError<&[u8], Self>, SizeError<&[u8], Self>, Infallible>>where
Self: Sized,
fn read_from_suffix(
source: &[u8],
) -> Result<(&[u8], Self), ConvertError<AlignmentError<&[u8], Self>, SizeError<&[u8], Self>, Infallible>>where
Self: Sized,
Reads a copy of
Self
from the suffix of the given bytes. Read moresource§impl FromZeros for __sk_buff__bindgen_ty_1where
uref<bpf_flow_keys>: FromZeros + Immutable,
__BindgenBitfieldUnit<[u8; 8]>: FromZeros + Immutable,
impl FromZeros for __sk_buff__bindgen_ty_1where
uref<bpf_flow_keys>: FromZeros + Immutable,
__BindgenBitfieldUnit<[u8; 8]>: FromZeros + Immutable,
source§impl IntoBytes for __sk_buff__bindgen_ty_1where
uref<bpf_flow_keys>: IntoBytes,
__BindgenBitfieldUnit<[u8; 8]>: IntoBytes,
HasPadding<__sk_buff__bindgen_ty_1, { _ }>: ShouldBe<false>,
impl IntoBytes for __sk_buff__bindgen_ty_1where
uref<bpf_flow_keys>: IntoBytes,
__BindgenBitfieldUnit<[u8; 8]>: IntoBytes,
HasPadding<__sk_buff__bindgen_ty_1, { _ }>: ShouldBe<false>,
§fn as_mut_bytes(&mut self) -> &mut [u8] ⓘwhere
Self: FromBytes,
fn as_mut_bytes(&mut self) -> &mut [u8] ⓘwhere
Self: FromBytes,
Gets the bytes of this value mutably. Read more
§fn write_to(&self, dst: &mut [u8]) -> Result<(), SizeError<&Self, &mut [u8]>>where
Self: Immutable,
fn write_to(&self, dst: &mut [u8]) -> Result<(), SizeError<&Self, &mut [u8]>>where
Self: Immutable,
source§impl KnownLayout for __sk_buff__bindgen_ty_1where
Self: Sized,
impl KnownLayout for __sk_buff__bindgen_ty_1where
Self: Sized,
§type PointerMetadata = ()
type PointerMetadata = ()
The type of metadata stored in a pointer to
Self
. Read moresource§impl TryFromBytes for __sk_buff__bindgen_ty_1where
uref<bpf_flow_keys>: TryFromBytes + Immutable,
__BindgenBitfieldUnit<[u8; 8]>: TryFromBytes + Immutable,
impl TryFromBytes for __sk_buff__bindgen_ty_1where
uref<bpf_flow_keys>: TryFromBytes + Immutable,
__BindgenBitfieldUnit<[u8; 8]>: TryFromBytes + Immutable,
§fn try_ref_from_bytes(
candidate: &[u8],
) -> Result<&Self, ConvertError<AlignmentError<&[u8], Self>, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>where
Self: KnownLayout + Immutable,
fn try_ref_from_bytes(
candidate: &[u8],
) -> Result<&Self, ConvertError<AlignmentError<&[u8], Self>, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>where
Self: KnownLayout + Immutable,
§fn try_ref_from_prefix(
candidate: &[u8],
) -> Result<(&Self, &[u8]), ConvertError<AlignmentError<&[u8], Self>, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>where
Self: KnownLayout + Immutable,
fn try_ref_from_prefix(
candidate: &[u8],
) -> Result<(&Self, &[u8]), ConvertError<AlignmentError<&[u8], Self>, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>where
Self: KnownLayout + Immutable,
§fn try_ref_from_suffix(
candidate: &[u8],
) -> Result<(&[u8], &Self), ConvertError<AlignmentError<&[u8], Self>, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>where
Self: KnownLayout + Immutable,
fn try_ref_from_suffix(
candidate: &[u8],
) -> Result<(&[u8], &Self), ConvertError<AlignmentError<&[u8], Self>, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>where
Self: KnownLayout + Immutable,
§fn try_mut_from_bytes(
bytes: &mut [u8],
) -> Result<&mut Self, ConvertError<AlignmentError<&mut [u8], Self>, SizeError<&mut [u8], Self>, ValidityError<&mut [u8], Self>>>where
Self: KnownLayout,
fn try_mut_from_bytes(
bytes: &mut [u8],
) -> Result<&mut Self, ConvertError<AlignmentError<&mut [u8], Self>, SizeError<&mut [u8], Self>, ValidityError<&mut [u8], Self>>>where
Self: KnownLayout,
§fn try_mut_from_prefix(
candidate: &mut [u8],
) -> Result<(&mut Self, &mut [u8]), ConvertError<AlignmentError<&mut [u8], Self>, SizeError<&mut [u8], Self>, ValidityError<&mut [u8], Self>>>where
Self: KnownLayout,
fn try_mut_from_prefix(
candidate: &mut [u8],
) -> Result<(&mut Self, &mut [u8]), ConvertError<AlignmentError<&mut [u8], Self>, SizeError<&mut [u8], Self>, ValidityError<&mut [u8], Self>>>where
Self: KnownLayout,
§fn try_mut_from_suffix(
candidate: &mut [u8],
) -> Result<(&mut [u8], &mut Self), ConvertError<AlignmentError<&mut [u8], Self>, SizeError<&mut [u8], Self>, ValidityError<&mut [u8], Self>>>where
Self: KnownLayout,
fn try_mut_from_suffix(
candidate: &mut [u8],
) -> Result<(&mut [u8], &mut Self), ConvertError<AlignmentError<&mut [u8], Self>, SizeError<&mut [u8], Self>, ValidityError<&mut [u8], Self>>>where
Self: KnownLayout,
§fn try_read_from_bytes(
bytes: &[u8],
) -> Result<Self, ConvertError<Infallible, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>where
Self: Sized,
fn try_read_from_bytes(
bytes: &[u8],
) -> Result<Self, ConvertError<Infallible, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>where
Self: Sized,
impl Copy for __sk_buff__bindgen_ty_1
impl Immutable for __sk_buff__bindgen_ty_1
Auto Trait Implementations§
impl Freeze for __sk_buff__bindgen_ty_1
impl RefUnwindSafe for __sk_buff__bindgen_ty_1
impl Send for __sk_buff__bindgen_ty_1
impl Sync for __sk_buff__bindgen_ty_1
impl Unpin for __sk_buff__bindgen_ty_1
impl UnwindSafe for __sk_buff__bindgen_ty_1
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)