#[non_exhaustive]pub enum Error {
NotARepository(String),
InvalidObjectId(String),
ObjectNotFound(String),
CorruptObject(String),
UnknownObjectType(String),
Io(Error),
Zlib(String),
IndexError(String),
InvalidRef(String),
PathError(String),
ConfigError(String),
}Expand description
The top-level error type for all Gust library operations.
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.
NotARepository(String)
A repository could not be found or is structurally invalid.
InvalidObjectId(String)
A supplied object ID string was not valid hex or the wrong length.
ObjectNotFound(String)
The requested object does not exist in the object store.
CorruptObject(String)
An object’s stored data is corrupt or malformed.
UnknownObjectType(String)
An unsupported or unknown object type was encountered.
Io(Error)
An I/O error from the underlying filesystem.
Zlib(String)
A zlib compression or decompression failure.
IndexError(String)
The index file is missing, truncated, or has a bad header.
InvalidRef(String)
A reference name or value is invalid.
PathError(String)
A general path-related error (invalid UTF-8, out-of-bounds, etc.).
ConfigError(String)
A configuration file parsing or access error.
Trait Implementations§
Source§impl Error for Error
impl Error for Error
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()
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