pub enum PageMapError {
PageNotPresent,
PageNotSwapped,
Open {
path: String,
source: Error,
},
Read {
path: String,
source: Error,
},
Seek {
path: String,
source: Error,
},
Access(String),
Io(Error),
ParseMemoryRegion(ParseIntError),
ParsePagePermissions(String),
ParseDeviceNumbers(String),
ParseIntError(ParseIntError),
}
Expand description
An error type returned by calls to the API exposed by this crate.
Variants§
PageNotPresent
The PM_PRESENT
bit is not set.
PageNotSwapped
The PM_SWAP
bit is not set.
Open
Error opening a file.
Fields
Read
Error reading from a file.
Fields
Seek
Error seeking in a file.
Fields
Access(String)
Error accessing a file.
Io(Error)
Generic I/O error.
ParseMemoryRegion(ParseIntError)
Error parsing MemoryRegion
.
ParsePagePermissions(String)
Error parsing PagePermissions
.
ParseDeviceNumbers(String)
Error parsing DeviceNumbers
.
ParseIntError(ParseIntError)
Generic integer parsing error.
Trait Implementations§
Source§impl Debug for PageMapError
impl Debug for PageMapError
Source§impl Display for PageMapError
impl Display for PageMapError
Source§impl Error for PageMapError
impl Error for PageMapError
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()
Source§impl From<Error> for PageMapError
impl From<Error> for PageMapError
Source§impl From<ParseIntError> for PageMapError
impl From<ParseIntError> for PageMapError
Source§fn from(source: ParseIntError) -> Self
fn from(source: ParseIntError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for PageMapError
impl !RefUnwindSafe for PageMapError
impl Send for PageMapError
impl Sync for PageMapError
impl Unpin for PageMapError
impl !UnwindSafe for PageMapError
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