pub enum PackError {
NotAPack,
Version {
found: u32,
},
Stamp {
found: String,
expected: String,
},
Truncated,
Checksum,
Broken(String),
}Expand description
Why a pack was refused.
Variants§
NotAPack
It doesn’t start with MAGIC.
Version
It is of another VERSION.
Stamp
It was baked for another stamp.
Truncated
It is shorter than its header or its index says.
Checksum
A byte after the header isn’t the one baked.
Broken(String)
Its index or one of its files doesn’t hold together.
Trait Implementations§
impl Eq for PackError
Source§impl Error for PackError
impl Error for PackError
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()
impl StructuralPartialEq for PackError
Auto Trait Implementations§
impl Freeze for PackError
impl RefUnwindSafe for PackError
impl Send for PackError
impl Sync for PackError
impl Unpin for PackError
impl UnsafeUnpin for PackError
impl UnwindSafe for PackError
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