pub enum Error<Actual> {
CasFailed(Actual),
Unsupported(String),
ReportableBug(String),
Io(Error),
Corruption {
at: u64,
},
}
Expand description
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.
Implementations§
Trait Implementations§
Source§impl<T> Error for Error<T>where
T: Debug,
impl<T> Error for Error<T>where
T: Debug,
Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
1.30.0 · 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
Auto Trait Implementations§
impl<Actual> Freeze for Error<Actual>where
Actual: Freeze,
impl<Actual> !RefUnwindSafe for Error<Actual>
impl<Actual> Send for Error<Actual>where
Actual: Send,
impl<Actual> Sync for Error<Actual>where
Actual: Sync,
impl<Actual> Unpin for Error<Actual>where
Actual: Unpin,
impl<Actual> !UnwindSafe for Error<Actual>
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