pub enum ReadAtError {
Expired {
requested_epoch: u64,
readable_from_epoch: u64,
},
NotYetReadable {
requested_epoch: u64,
readable_through_epoch: u64,
},
Unavailable {
requested_epoch: u64,
reason: String,
},
}Expand description
Classified failure to open a fenced storage snapshot.
Variants§
Expired
The requested epoch was compacted before a session could open.
Fields
NotYetReadable
The requested epoch has not been applied by the backend.
Fields
The backend has no admissible read-at implementation.
Trait Implementations§
Source§impl Clone for ReadAtError
impl Clone for ReadAtError
Source§fn clone(&self) -> ReadAtError
fn clone(&self) -> ReadAtError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ReadAtError
impl Debug for ReadAtError
Source§impl Display for ReadAtError
impl Display for ReadAtError
impl Eq for ReadAtError
Source§impl Error for ReadAtError
impl Error for ReadAtError
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
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl PartialEq for ReadAtError
impl PartialEq for ReadAtError
impl StructuralPartialEq for ReadAtError
Auto Trait Implementations§
impl Freeze for ReadAtError
impl RefUnwindSafe for ReadAtError
impl Send for ReadAtError
impl Sync for ReadAtError
impl Unpin for ReadAtError
impl UnsafeUnpin for ReadAtError
impl UnwindSafe for ReadAtError
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