pub enum SnapshotError {
}
Expand description
Errors that can occur while interacting with snapshots
Variants§
Open(Error)
Returned when opening a snapshot fails
OpenNew(Error)
Returned when opening a new snapshot fails
FlushNew(Error)
Returned when flush new snapshot fails
Flush(Error)
Returned when flush snapshot fails
Sync(Error)
Returned when fsync snapshot fails
Stat(Error)
Returned when stat snapshot fails
Remove(Error)
Returned when remove old snapshot fails
Install(Error)
Returned when installing a new snapshot fails
WriteNew(Error)
Returned when writing to a new snapshot fails
Write(Error)
Returned when writing to a snapshot fails
SeekStart(Error)
Returned when seek to start of a snapshot fails
SeekEnd(Error)
Returned when seek to end of a snapshot fails
Replay(Error)
Returned when replaying a snapshot fails
UnknownRecordType(UnknownRecordType)
Returned when fail to decode snapshot record type.
Trait Implementations§
Source§impl Debug for SnapshotError
impl Debug for SnapshotError
Source§impl Display for SnapshotError
impl Display for SnapshotError
Source§impl Error for SnapshotError
impl Error for SnapshotError
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<T, D> From<SnapshotError> for Error<T, D>
impl<T, D> From<SnapshotError> for Error<T, D>
Source§fn from(value: SnapshotError) -> Self
fn from(value: SnapshotError) -> Self
Converts to this type from the input type.
Source§impl From<SnapshotError> for SerfError
impl From<SnapshotError> for SerfError
Source§fn from(source: SnapshotError) -> Self
fn from(source: SnapshotError) -> Self
Converts to this type from the input type.
Source§impl From<UnknownRecordType> for SnapshotError
impl From<UnknownRecordType> for SnapshotError
Source§fn from(source: UnknownRecordType) -> Self
fn from(source: UnknownRecordType) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for SnapshotError
impl !RefUnwindSafe for SnapshotError
impl Send for SnapshotError
impl Sync for SnapshotError
impl Unpin for SnapshotError
impl !UnwindSafe for SnapshotError
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more