pub struct UmemConfig {
pub size: usize,
pub hugepage: bool,
pub locked: bool,
pub shared: bool,
}Expand description
UMEM 配置
Fields§
§size: usize总大小(字节),必须是 PAGE_SIZE 的倍数
hugepage: bool是否使用 HugePage
locked: bool是否锁定内存
共享内存标志(用于多个 XSK 共享)
Trait Implementations§
Source§impl Clone for UmemConfig
impl Clone for UmemConfig
Source§fn clone(&self) -> UmemConfig
fn clone(&self) -> UmemConfig
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 moreSource§impl Debug for UmemConfig
impl Debug for UmemConfig
Auto Trait Implementations§
impl Freeze for UmemConfig
impl RefUnwindSafe for UmemConfig
impl Send for UmemConfig
impl Sync for UmemConfig
impl Unpin for UmemConfig
impl UnsafeUnpin for UmemConfig
impl UnwindSafe for UmemConfig
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