pub enum Error {
OpenRepo {
path: PathBuf,
source: Box<Error>,
},
References(Error),
ReferencesInit(Error),
Peel(String),
TagObject(String),
TagNotFound(String),
Object(String),
TreeTraversal(String),
TempDir(Error),
TagCreate(String),
}Expand description
Errors that can occur during git repository operations.
Variants§
OpenRepo
Failed to open a git repository at the given path.
Fields
References(Error)
Failed to initialise the reference iterator.
ReferencesInit(Error)
Failed to create the reference iterator platform.
Peel(String)
Failed to peel a reference to its target object.
TagObject(String)
Failed to read a tag object from the repository.
TagNotFound(String)
The requested tag ref does not exist in the repository.
Object(String)
Failed to resolve or decode a git object.
TreeTraversal(String)
Failed to traverse the tree entries.
TempDir(Error)
Failed to create a temporary directory.
TagCreate(String)
Git tag creation or deletion command failed.
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