pub enum Error<Actual> {
CasFailed(Actual),
CollectionNotFound(Vec<u8>),
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.
An atomic operation has failed, and the current value is provided.
The underlying collection no longer exists.
The system has been used in an unsupported way.
An unexpected bug has happened. Please open an issue on github!
A read or write error has happened when interacting with the file system.
Corruption has been detected in the storage file.
Fields of Corruption
The file location that corrupted data was found at.
Turns an Error<A>
into an Error<B>
.
Panics if the Error is of type Error::CasFailed
Turns an Error<A>
into an Error<B>
.
Formats the value using the given formatter. Read more
Performs copy-assignment from source
. Read more
Formats the value using the given formatter. Read more
Deprecated since 1.33.0:
replaced by Error::source, which can support downcasting
The lower-level cause of this error, if any. Read more
The lower-level source of this error, if any. Read more
This method tests for self
and other
values to be equal, and is used by ==
. Read more
This method tests for !=
.
Converts the given value to a String
. Read more
Creates owned data from borrowed data, usually by cloning. Read more
🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
Immutably borrows from an owned value. Read more
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
Mutably borrows from an owned value. Read more
🔬 This is a nightly-only experimental API. (get_type_id
)
this method will likely be replaced by an associated static