Struct rustix::net::xdp::XdpRingOffset
source · pub struct XdpRingOffset {
pub producer: u64,
pub consumer: u64,
pub desc: u64,
pub flags: Option<u64>,
}
Expand description
XDP ring offset.
Used to mmap rings from kernel.
Not ABI compatible with struct xdp_ring_offset
.
Fields§
§producer: u64
Producer offset.
consumer: u64
Consumer offset.
desc: u64
Descriptors offset.
flags: Option<u64>
Flags offset.
Is None
if the kernel version (<5.4) does not yet support flags.
Trait Implementations§
source§impl Clone for XdpRingOffset
impl Clone for XdpRingOffset
source§fn clone(&self) -> XdpRingOffset
fn clone(&self) -> XdpRingOffset
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 Debug for XdpRingOffset
impl Debug for XdpRingOffset
source§impl Hash for XdpRingOffset
impl Hash for XdpRingOffset
source§impl PartialEq for XdpRingOffset
impl PartialEq for XdpRingOffset
source§fn eq(&self, other: &XdpRingOffset) -> bool
fn eq(&self, other: &XdpRingOffset) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for XdpRingOffset
impl Eq for XdpRingOffset
impl StructuralPartialEq for XdpRingOffset
Auto Trait Implementations§
impl Freeze for XdpRingOffset
impl RefUnwindSafe for XdpRingOffset
impl Send for XdpRingOffset
impl Sync for XdpRingOffset
impl Unpin for XdpRingOffset
impl UnwindSafe for XdpRingOffset
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