Enum pagemap::PageMapError [−][src]
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), }
An error type returned by calls to the API exposed by this crate.
Variants
The PM_PRESENT
bit is not set.
The PM_SWAP
bit is not set.
Error opening a file.
Show fields
Error reading from a file.
Show fields
Error seeking in a file.
Show 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
impl Debug for PageMapError
[src]
impl Debug for PageMapError
[src]impl Display for PageMapError
[src]
impl Display for PageMapError
[src]impl Error for PageMapError
[src]
impl Error for PageMapError
[src]fn source(&self) -> Option<&(dyn Error + 'static)>
[src]
fn source(&self) -> Option<&(dyn Error + 'static)>
[src]The lower-level source of this error, if any. Read more
fn backtrace(&self) -> Option<&Backtrace>
[src]
fn backtrace(&self) -> Option<&Backtrace>
[src]🔬 This is a nightly-only experimental API. (
backtrace
)Returns a stack backtrace, if available, of where this error occurred. Read more
fn description(&self) -> &str
1.0.0[src]
fn description(&self) -> &str
1.0.0[src]👎 Deprecated since 1.42.0:
use the Display impl or to_string()
impl From<ParseIntError> for PageMapError
[src]
impl From<ParseIntError> for PageMapError
[src]fn from(source: ParseIntError) -> Self
[src]
fn from(source: ParseIntError) -> Self
[src]Performs the conversion.
Auto Trait Implementations
impl !RefUnwindSafe for PageMapError
impl Send for PageMapError
impl Sync for PageMapError
impl Unpin for PageMapError
impl !UnwindSafe for PageMapError
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more