#[non_exhaustive]pub enum Error {
Show 23 variants
FileSystem(FileSystemError),
PathError(Vec<u8>),
LooseObjectDecompressError {
id: ObjectId,
status: TINFLStatus,
},
PackObjectDecompressError {
id: ObjectId,
status: TINFLStatus,
},
FromHexError(FromHexError),
UnsupportedIndexVersion,
CorruptIndexFile,
UnsupportedPackVersion,
CorruptPackFile,
MalformedPackedRefs,
MalformedRef(RefName),
RefNotFound(RefName),
MalformedPackObject(ObjectId),
MalformedObject(ObjectId),
ObjectParseError {
id: ObjectId,
snippet: Vec<u8>,
},
ObjectMissingRequiredFields(ObjectId),
MissingObject(ObjectId),
ObjectTooLarge(ObjectId),
UnexpectedThinPack,
NotAnnotatedWithRepo,
UnexpectedObjectType(UnexpectedObjectType),
DiffCanceled,
NotAGitRepository,
}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.
FileSystem(FileSystemError)
PathError(Vec<u8>)
LooseObjectDecompressError
PackObjectDecompressError
FromHexError(FromHexError)
UnsupportedIndexVersion
CorruptIndexFile
UnsupportedPackVersion
CorruptPackFile
MalformedPackedRefs
MalformedRef(RefName)
RefNotFound(RefName)
MalformedPackObject(ObjectId)
MalformedObject(ObjectId)
ObjectParseError
ObjectMissingRequiredFields(ObjectId)
MissingObject(ObjectId)
ObjectTooLarge(ObjectId)
UnexpectedThinPack
NotAnnotatedWithRepo
UnexpectedObjectType(UnexpectedObjectType)
DiffCanceled
NotAGitRepository
Trait Implementations§
Source§impl From<FileSystemError> for Error
impl From<FileSystemError> for Error
Source§fn from(value: FileSystemError) -> Self
fn from(value: FileSystemError) -> Self
Converts to this type from the input type.
Source§impl From<FromHexError> for Error
impl From<FromHexError> for Error
Source§fn from(value: FromHexError) -> Self
fn from(value: FromHexError) -> Self
Converts to this type from the input type.
Source§impl From<UnexpectedObjectType> for Error
impl From<UnexpectedObjectType> for Error
Source§fn from(value: UnexpectedObjectType) -> Self
fn from(value: UnexpectedObjectType) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for Error
impl !RefUnwindSafe for Error
impl !Send for Error
impl !Sync for Error
impl Unpin for Error
impl UnsafeUnpin for Error
impl !UnwindSafe for Error
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