#[repr(C)]
pub struct __sk_buff {
Show 35 fields pub len: __u32, pub pkt_type: __u32, pub mark: __u32, pub queue_mapping: __u32, pub protocol: __u32, pub vlan_present: __u32, pub vlan_tci: __u32, pub vlan_proto: __u32, pub priority: __u32, pub ingress_ifindex: __u32, pub ifindex: __u32, pub tc_index: __u32, pub cb: [__u32; 5], pub hash: __u32, pub tc_classid: __u32, pub data: __u32, pub data_end: __u32, pub napi_id: __u32, pub family: __u32, pub remote_ip4: __u32, pub local_ip4: __u32, pub remote_ip6: [__u32; 4], pub local_ip6: [__u32; 4], pub remote_port: __u32, pub local_port: __u32, pub data_meta: __u32, pub __bindgen_anon_1: __sk_buff__bindgen_ty_1, pub tstamp: __u64, pub wire_len: __u32, pub gso_segs: __u32, pub __bindgen_anon_2: __sk_buff__bindgen_ty_2, pub gso_size: __u32, pub tstamp_type: __u8, pub _bitfield_1: __BindgenBitfieldUnit<[u8; 3]>, pub hwtstamp: __u64,
}

Fields§

§len: __u32§pkt_type: __u32§mark: __u32§queue_mapping: __u32§protocol: __u32§vlan_present: __u32§vlan_tci: __u32§vlan_proto: __u32§priority: __u32§ingress_ifindex: __u32§ifindex: __u32§tc_index: __u32§cb: [__u32; 5]§hash: __u32§tc_classid: __u32§data: __u32§data_end: __u32§napi_id: __u32§family: __u32§remote_ip4: __u32§local_ip4: __u32§remote_ip6: [__u32; 4]§local_ip6: [__u32; 4]§remote_port: __u32§local_port: __u32§data_meta: __u32§__bindgen_anon_1: __sk_buff__bindgen_ty_1§tstamp: __u64§wire_len: __u32§gso_segs: __u32§__bindgen_anon_2: __sk_buff__bindgen_ty_2§gso_size: __u32§tstamp_type: __u8§_bitfield_1: __BindgenBitfieldUnit<[u8; 3]>§hwtstamp: __u64

Implementations§

Trait Implementations§

source§

impl Clone for __sk_buff

source§

fn clone(&self) -> __sk_buff

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Default for __sk_buff

source§

fn default() -> Self

Returns the “default value” for a type. Read more
source§

impl FromBytes for __sk_buff
where __u32: FromBytes, [__u32; 5]: FromBytes, [__u32; 4]: FromBytes, __sk_buff__bindgen_ty_1: FromBytes, __u64: FromBytes, __sk_buff__bindgen_ty_2: FromBytes, __u8: FromBytes, __BindgenBitfieldUnit<[u8; 3]>: FromBytes,

§

fn ref_from(bytes: &[u8]) -> Option<&Self>
where Self: Sized + NoCell,

Interprets the given bytes as a &Self without copying. Read more
§

fn ref_from_prefix(bytes: &[u8]) -> Option<&Self>
where Self: Sized + NoCell,

Interprets the prefix of the given bytes as a &Self without copying. Read more
§

fn ref_from_suffix(bytes: &[u8]) -> Option<&Self>
where Self: Sized + NoCell,

Interprets the suffix of the given bytes as a &Self without copying. Read more
§

fn mut_from(bytes: &mut [u8]) -> Option<&mut Self>
where Self: Sized + IntoBytes + NoCell,

Interprets the given bytes as a &mut Self without copying. Read more
§

fn mut_from_prefix(bytes: &mut [u8]) -> Option<&mut Self>
where Self: Sized + IntoBytes + NoCell,

Interprets the prefix of the given bytes as a &mut Self without copying. Read more
§

fn mut_from_suffix(bytes: &mut [u8]) -> Option<&mut Self>
where Self: Sized + IntoBytes + NoCell,

Interprets the suffix of the given bytes as a &mut Self without copying. Read more
§

fn slice_from(bytes: &[u8]) -> Option<&[Self]>
where Self: Sized + NoCell,

Interprets the given bytes as a &[Self] without copying. Read more
§

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,

Interprets the suffix of the given bytes as a &[Self] with length equal to count without copying. Read more
§

fn mut_slice_from(bytes: &mut [u8]) -> Option<&mut [Self]>
where Self: Sized + IntoBytes + NoCell,

Interprets the given bytes as a &mut [Self] without copying. Read more
§

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,

Interprets the suffix of the given bytes as a &mut [Self] with length equal to count without copying. Read more
§

fn read_from(bytes: &[u8]) -> Option<Self>
where Self: Sized,

Reads a copy of Self from bytes. Read more
§

fn read_from_prefix(bytes: &[u8]) -> Option<Self>
where Self: Sized,

Reads a copy of Self from the prefix of bytes. Read more
§

fn read_from_suffix(bytes: &[u8]) -> Option<Self>
where Self: Sized,

Reads a copy of Self from the suffix of bytes. Read more
source§

impl FromZeros for __sk_buff
where __u32: FromZeros, [__u32; 5]: FromZeros, [__u32; 4]: FromZeros, __sk_buff__bindgen_ty_1: FromZeros, __u64: FromZeros, __sk_buff__bindgen_ty_2: FromZeros, __u8: FromZeros, __BindgenBitfieldUnit<[u8; 3]>: FromZeros,

§

fn zero(&mut self)

Overwrites self with zeros. Read more
§

fn new_zeroed() -> Self
where Self: Sized,

Creates an instance of Self from zeroed bytes. Read more
source§

impl IntoBytes for __sk_buff
where __u32: IntoBytes, [__u32; 5]: IntoBytes, [__u32; 4]: IntoBytes, __sk_buff__bindgen_ty_1: IntoBytes, __u64: IntoBytes, __sk_buff__bindgen_ty_2: IntoBytes, __u8: IntoBytes, __BindgenBitfieldUnit<[u8; 3]>: IntoBytes, HasPadding<__sk_buff, { _ }>: ShouldBe<false>,

§

fn as_bytes(&self) -> &[u8]
where Self: NoCell,

Gets the bytes of this value. Read more
§

fn as_bytes_mut(&mut self) -> &mut [u8]
where Self: FromBytes + NoCell,

Gets the bytes of this value mutably. Read more
§

fn write_to(&self, bytes: &mut [u8]) -> Option<()>
where Self: NoCell,

Writes a copy of self to bytes. Read more
§

fn write_to_prefix(&self, bytes: &mut [u8]) -> Option<()>
where Self: NoCell,

Writes a copy of self to the prefix of bytes. Read more
§

fn write_to_suffix(&self, bytes: &mut [u8]) -> Option<()>
where Self: NoCell,

Writes a copy of self to the suffix of bytes. Read more
source§

impl Copy for __sk_buff

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.