Enum pagecache::Error [−][src]
pub enum Error<Actual> { CasFailed(Actual), Unsupported(String), ReportableBug(String), Io(Error), Corruption { at: DiskPtr, }, }
An Error type encapsulating various issues that may come up in both the expected and unexpected operation of a PageCache.
Variants
CasFailed(Actual)
An atomic operation has failed, and the current value is provided
Unsupported(String)
The system has been used in an unsupported way.
ReportableBug(String)
An unexpected bug has happened. Please open an issue on github!
Io(Error)
A read or write error has happened when interacting with the file system.
Corruption
Corruption has been detected in the storage file.
Fields of Corruption
at: DiskPtr | The file location that corrupted data was found at. |
Methods
impl<T> Error<T>
[src]
impl<T> Error<T>
pub fn danger_cast<Other>(self) -> Error<Other>
[src]
pub fn danger_cast<Other>(self) -> Error<Other>
pub fn cast<Other>(self) -> Error<Other> where
T: Into<Other>,
[src]
pub fn cast<Other>(self) -> Error<Other> where
T: Into<Other>,
Turns an Error<A>
into an Error<B>
.
Trait Implementations
impl<Actual: Debug> Debug for Error<Actual>
[src]
impl<Actual: Debug> Debug for Error<Actual>
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl<A> PartialEq for Error<A> where
A: PartialEq,
[src]
impl<A> PartialEq for Error<A> where
A: PartialEq,
fn eq(&self, other: &Error<A>) -> bool
[src]
fn eq(&self, other: &Error<A>) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
fn ne(&self, other: &Rhs) -> bool
This method tests for !=
.
impl<T> From<Error> for Error<T>
[src]
impl<T> From<Error> for Error<T>
impl<T> StdError for Error<T> where
T: Debug,
[src]
impl<T> StdError for Error<T> where
T: Debug,
fn description(&self) -> &str
[src]
fn description(&self) -> &str
This method is soft-deprecated. Read more
fn cause(&self) -> Option<&Error>
1.0.0[src]
fn cause(&self) -> Option<&Error>
The lower-level cause of this error, if any. Read more
impl<A> Display for Error<A> where
A: Debug,
[src]
impl<A> Display for Error<A> where
A: Debug,