#[repr(C)]pub struct XdpDesc {
pub addr: u64,
pub len: u32,
pub options: u32,
}Expand description
An XDP descriptor, used in the TX and RX rings.
This struct corresponds to struct xdp_desc in the kernel and describes a
single packet buffer in the UMEM.
Fields§
§addr: u64The address of the packet data within the UMEM.
len: u32The length of the packet data.
options: u32Options for the descriptor, currently unused.
Implementations§
Trait Implementations§
impl Copy for XdpDesc
Auto Trait Implementations§
impl Freeze for XdpDesc
impl RefUnwindSafe for XdpDesc
impl Send for XdpDesc
impl Sync for XdpDesc
impl Unpin for XdpDesc
impl UnwindSafe for XdpDesc
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§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more