#[non_exhaustive]pub enum ZwinderError {
Decompress(String),
LengthMismatch {
kf: usize,
dl: usize,
},
MissingKeyframe(u64),
}Expand description
Errors raised when a stored Zwinder frame can’t be reconstructed.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Decompress(String)
LZ4 decompression of a stored body failed (corrupt entry).
LengthMismatch
A delta entry’s keyframe is missing or its length disagrees with the delta (shouldn’t happen for a stable build — snapshot shape is fixed).
MissingKeyframe(u64)
A delta referenced a keyframe that isn’t present in the store. By construction every delta is stored after a keyframe at-or-before its frame; this indicates a corrupt store.
Trait Implementations§
Source§impl Debug for ZwinderError
impl Debug for ZwinderError
Source§impl Display for ZwinderError
impl Display for ZwinderError
Source§impl Error for ZwinderError
impl Error for ZwinderError
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()
Auto Trait Implementations§
impl Freeze for ZwinderError
impl RefUnwindSafe for ZwinderError
impl Send for ZwinderError
impl Sync for ZwinderError
impl Unpin for ZwinderError
impl UnsafeUnpin for ZwinderError
impl UnwindSafe for ZwinderError
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