pub enum SnapshotError {
Io(Error),
InvalidFormat(String),
Corrupted,
Backend(String),
}Expand description
Errors from snapshot operations.
Uses thiserror to match crate::KvError; unlike KvError (which is
Clone and so flattens its causes to strings), snapshot errors are observed
by a single caller, so Io keeps its #[source] chain via #[from].
Variants§
Io(Error)
InvalidFormat(String)
Corrupted
Backend(String)
A pluggable SnapshotStore backend (e.g. the fjall on-disk store)
reported an error. Kept backend-agnostic — no backend type leaks into this
enum’s signature — so enabling a backend feature does not change the public
error surface.
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()
Auto Trait Implementations§
impl !RefUnwindSafe for SnapshotError
impl !UnwindSafe for SnapshotError
impl Freeze for SnapshotError
impl Send for SnapshotError
impl Sync for SnapshotError
impl Unpin for SnapshotError
impl UnsafeUnpin 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