#[non_exhaustive]pub enum PackBitmapWriteError {
NotClosed {
missing: Vec<ObjectId>,
},
NotFilesBacked,
InvalidPackPath(String),
Io(String),
Object(String),
}Expand description
Failure while writing a pack reachability bitmap.
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.
NotClosed
An object reachable from the chosen tips is missing from the pack index.
Fields
NotFilesBacked
The repository does not use a files-backed object store.
InvalidPackPath(String)
Pack index or sidecar path is invalid.
Io(String)
Unexpected I/O failure.
Object(String)
Object database or pack data could not be read.
Implementations§
Source§impl PackBitmapWriteError
impl PackBitmapWriteError
Sourcepub fn not_closed_missing(&self) -> Option<&[ObjectId]>
pub fn not_closed_missing(&self) -> Option<&[ObjectId]>
Missing object ids when Self::NotClosed ended the write.
Trait Implementations§
Source§impl Debug for PackBitmapWriteError
impl Debug for PackBitmapWriteError
Source§impl Display for PackBitmapWriteError
impl Display for PackBitmapWriteError
impl Eq for PackBitmapWriteError
Source§impl Error for PackBitmapWriteError
impl Error for PackBitmapWriteError
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 PartialEq for PackBitmapWriteError
impl PartialEq for PackBitmapWriteError
impl StructuralPartialEq for PackBitmapWriteError
Auto Trait Implementations§
impl Freeze for PackBitmapWriteError
impl RefUnwindSafe for PackBitmapWriteError
impl Send for PackBitmapWriteError
impl Sync for PackBitmapWriteError
impl Unpin for PackBitmapWriteError
impl UnsafeUnpin for PackBitmapWriteError
impl UnwindSafe for PackBitmapWriteError
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