pub enum UmemError {
MmapFailed(String),
LockFailed(String),
NotAligned {
actual: usize,
expected: usize,
},
InsufficientSize {
actual: usize,
required: usize,
},
HugePageNotAvailable,
AlreadyCreated,
NotCreated,
MunmapFailed(String),
}Expand description
UMEM 操作错误
Variants§
MmapFailed(String)
mmap 失败
LockFailed(String)
内存锁定失败
NotAligned
内存地址未对齐
InsufficientSize
内存大小不足
HugePageNotAvailable
HugePage 不可用
AlreadyCreated
UMEM 已创建
NotCreated
UMEM 未创建
MunmapFailed(String)
munmap 失败
Implementations§
Trait Implementations§
Source§impl Error for UmemError
impl Error for UmemError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Auto Trait Implementations§
impl Freeze for UmemError
impl RefUnwindSafe for UmemError
impl Send for UmemError
impl Sync for UmemError
impl Unpin for UmemError
impl UnsafeUnpin for UmemError
impl UnwindSafe for UmemError
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