Enum pagecache::Error
[−]
[src]
pub enum Error<Actual> { CasFailed(Actual), Unsupported(String), ReportableBug(String), Io(Error), Corruption { at: LogID, }, }
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: LogID | The file location that corrupted data was found at. |
Methods
impl<T> Error<T>
[src]
fn danger_cast<Other>(self) -> Error<Other>
[src]
fn cast<Other>(self) -> Error<Other> where
Other: From<T>,
[src]
Other: From<T>,
Turns an Error<A>
into an Error<B>
.
Trait Implementations
impl<Actual: Debug> Debug for Error<Actual>
[src]
impl<A> PartialEq for Error<A> where
A: PartialEq,
[src]
A: PartialEq,
fn eq(&self, other: &Error<A>) -> bool
[src]
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]
This method tests for !=
.
impl<T> From<Error> for Error<T>
[src]
impl<A> Display for Error<A> where
A: Debug,
[src]
A: Debug,