pub enum SnapshotWriteError<E> {
Database(DbError),
Format(Error),
Output(E),
}Expand description
A snapshot failed to read, encode or reach its plaintext consumer.
Variants§
Database(DbError)
Reading committed data failed.
Format(Error)
A record could not be encoded.
Output(E)
The consumer refused a frame.
Trait Implementations§
Source§impl<E: CarriesBug> CarriesBug for SnapshotWriteError<E>
impl<E: CarriesBug> CarriesBug for SnapshotWriteError<E>
Source§impl<E: Debug> Debug for SnapshotWriteError<E>
impl<E: Debug> Debug for SnapshotWriteError<E>
Source§impl<E> Display for SnapshotWriteError<E>where
E: Display,
impl<E> Display for SnapshotWriteError<E>where
E: Display,
Source§impl<E> Error for SnapshotWriteError<E>
impl<E> Error for SnapshotWriteError<E>
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<E> From<DbError> for SnapshotWriteError<E>
impl<E> From<DbError> for SnapshotWriteError<E>
Auto Trait Implementations§
impl<E> Freeze for SnapshotWriteError<E>where
E: Freeze,
impl<E> !RefUnwindSafe for SnapshotWriteError<E>
impl<E> Send for SnapshotWriteError<E>where
E: Send,
impl<E> Sync for SnapshotWriteError<E>where
E: Sync,
impl<E> Unpin for SnapshotWriteError<E>where
E: Unpin,
impl<E> UnsafeUnpin for SnapshotWriteError<E>where
E: UnsafeUnpin,
impl<E> !UnwindSafe for SnapshotWriteError<E>
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