pub struct RingOffsets {
pub producer: u64,
pub consumer: u64,
pub desc: u64,
pub flags: u64,
pub len: u64,
}Expand description
Ring 内存布局偏移(相对于 ring 起始地址)
与内核 xdp_ring_offset 结构一致:
- producer: 生产者索引的偏移
- consumer: 消费者索引的偏移
- desc: 描述符数组起始偏移
- flags: 标志位偏移
- len: ring 长度(字节)
Fields§
§producer: u64生产者索引偏移
consumer: u64消费者索引偏移
desc: u64描述符数组起始偏移
flags: u64标志位偏移
len: u64ring 总长度(字节)
Trait Implementations§
Source§impl Clone for RingOffsets
impl Clone for RingOffsets
Source§fn clone(&self) -> RingOffsets
fn clone(&self) -> RingOffsets
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for RingOffsets
Auto Trait Implementations§
impl Freeze for RingOffsets
impl RefUnwindSafe for RingOffsets
impl Send for RingOffsets
impl Sync for RingOffsets
impl Unpin for RingOffsets
impl UnsafeUnpin for RingOffsets
impl UnwindSafe for RingOffsets
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