pub struct UmemRegion {
pub addr: *mut u8,
pub size: usize,
pub hugepage: bool,
pub locked: bool,
pub page_offset: u64,
}Expand description
内存区域信息
Fields§
§addr: *mut u8起始地址(虚拟地址)
size: usize大小(字节)
hugepage: bool是否使用 HugePage
locked: bool是否已锁定
page_offset: u64页偏移(相对于起始地址)
Trait Implementations§
Source§impl Clone for UmemRegion
impl Clone for UmemRegion
Source§fn clone(&self) -> UmemRegion
fn clone(&self) -> UmemRegion
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 UmemRegion
impl Debug for UmemRegion
impl Send for UmemRegion
impl Sync for UmemRegion
Auto Trait Implementations§
impl Freeze for UmemRegion
impl RefUnwindSafe for UmemRegion
impl Unpin for UmemRegion
impl UnsafeUnpin for UmemRegion
impl UnwindSafe for UmemRegion
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