pub enum CompactError {
Invalid(String),
Missing,
Tree(TreeError),
GitObjectId(String),
SpoolId(String),
MessagePackEncode(Error),
MessagePackDecode(Error),
}Expand description
Compact metadata encoding failure.
Variants§
Invalid(String)
The frame is malformed, truncated, or internally inconsistent.
Missing
The requested object is not present after a verified reconstruction.
Tree(TreeError)
A decoded tree violates the native tree invariants.
GitObjectId(String)
A decoded Git object id is invalid.
SpoolId(String)
A decoded spool id is invalid.
MessagePackEncode(Error)
A compact verification value cannot be serialized losslessly.
MessagePackDecode(Error)
A compact verification value cannot be deserialized losslessly.
Trait Implementations§
Source§impl Debug for CompactError
impl Debug for CompactError
Source§impl Display for CompactError
impl Display for CompactError
Source§impl Error for CompactError
impl Error for CompactError
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 From<Error> for CompactError
impl From<Error> for CompactError
Source§impl From<Error> for CompactError
impl From<Error> for CompactError
Auto Trait Implementations§
impl !RefUnwindSafe for CompactError
impl !UnwindSafe for CompactError
impl Freeze for CompactError
impl Send for CompactError
impl Sync for CompactError
impl Unpin for CompactError
impl UnsafeUnpin for CompactError
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