pub enum MmapIoError {
Io(Error),
InvalidMode(&'static str),
OutOfBounds {
offset: u64,
len: u64,
total: u64,
},
FlushFailed(String),
ResizeFailed(String),
AdviceFailed(String),
LockFailed(String),
UnlockFailed(String),
Misaligned {
required: u64,
offset: u64,
},
WatchFailed(String),
}
Expand description
Error type covering filesystem, mapping, bounds, and concurrency issues.
Variants§
Io(Error)
Wrapper for std::io::Error
.
InvalidMode(&'static str)
Error returned when attempting an operation in an incompatible mode.
OutOfBounds
Error when a requested offset/length pair is out of bounds.
Fields
FlushFailed(String)
Error when a flush operation fails.
ResizeFailed(String)
Error when resizing is not allowed or fails.
AdviceFailed(String)
Error when memory advise fails.
LockFailed(String)
Error when lock operation fails.
UnlockFailed(String)
Error when unlock operation fails.
Misaligned
Error when alignment is required for atomic memory views.
WatchFailed(String)
Error when starting or running a watcher fails.
Trait Implementations§
Source§impl Debug for MmapIoError
impl Debug for MmapIoError
Source§impl Display for MmapIoError
impl Display for MmapIoError
Source§impl Error for MmapIoError
impl Error for MmapIoError
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 MmapIoError
impl !RefUnwindSafe for MmapIoError
impl Send for MmapIoError
impl Sync for MmapIoError
impl Unpin for MmapIoError
impl !UnwindSafe for MmapIoError
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