pub enum GitError {
Native(String),
OutsideWorkdir,
}Expand description
Why a repository operation failed — typed, not a string and not an empty Vec standing in for “something went wrong” (R9).
Variants§
Native(String)
libgit2 failed underneath (corrupt index, blob read, config…).
OutsideWorkdir
The path is not inside the repository workdir — the caller’s buffer cannot take part in this repository’s edges at all.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for GitError
impl<'de> Deserialize<'de> for GitError
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for GitError
impl StructuralPartialEq for GitError
Auto Trait Implementations§
impl Freeze for GitError
impl RefUnwindSafe for GitError
impl Send for GitError
impl Sync for GitError
impl Unpin for GitError
impl UnsafeUnpin for GitError
impl UnwindSafe for GitError
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