pub enum Error<Actual> {
CasFailed(Actual),
CollectionNotFound(Vec<u8, Global>),
Unsupported(String),
ReportableBug(String),
Io(Error),
Corruption {
at: DiskPtr,
},
}
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.
CollectionNotFound(Vec<u8, Global>)
The underlying collection no longer exists.
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
Fields
at: DiskPtr
The file location that corrupted data was found at.
Corruption has been detected in the storage file.
Implementations
Trait Implementations
sourceimpl<T> Error for Error<T>where
T: Debug,
impl<T> Error for Error<T>where
T: Debug,
sourcefn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
1.30.0 · sourcefn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
sourceimpl<A> PartialEq<Error<A>> for Error<A>where
A: PartialEq<A>,
impl<A> PartialEq<Error<A>> for Error<A>where
A: PartialEq<A>,
impl<A> Eq for Error<A>where
A: Eq,
Auto Trait Implementations
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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more