#[non_exhaustive]pub enum BitmapError {
TooSmall,
InvalidHeader,
MissingFullDag,
FileChecksumMismatch,
PackChecksumMismatch,
Corrupt,
InvalidEwah,
Io(String),
}Expand description
Failure mode when a .bitmap sidecar cannot be used.
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.
TooSmall
The file is empty or shorter than a bitmap header.
InvalidHeader
The BITM signature or version is wrong.
MissingFullDag
Required BITMAP_OPT_FULL_DAG is missing.
FileChecksumMismatch
On-disk trailer hash does not match file contents.
PackChecksumMismatch
Header pack/MIDX checksum does not match the object database.
Corrupt
An extension or entry could not be parsed safely.
InvalidEwah
Embedded EWAH payload is invalid.
Io(String)
I/O while mapping or reading the bitmap file.
Trait Implementations§
Source§impl Clone for BitmapError
impl Clone for BitmapError
Source§impl Debug for BitmapError
impl Debug for BitmapError
Source§impl Display for BitmapError
impl Display for BitmapError
impl Eq for BitmapError
Source§impl Error for BitmapError
impl Error for BitmapError
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()
Source§impl From<BitmapError> for BitmapWalkError
impl From<BitmapError> for BitmapWalkError
Source§fn from(source: BitmapError) -> Self
fn from(source: BitmapError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for BitmapError
impl PartialEq for BitmapError
impl StructuralPartialEq for BitmapError
Auto Trait Implementations§
impl Freeze for BitmapError
impl RefUnwindSafe for BitmapError
impl Send for BitmapError
impl Sync for BitmapError
impl Unpin for BitmapError
impl UnsafeUnpin for BitmapError
impl UnwindSafe for BitmapError
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