#[non_exhaustive]pub enum Libgit2BackendError {
Discover {
path: PathBuf,
source: Error,
},
Open {
path: PathBuf,
source: Error,
},
QueryRepositoryChanges {
worktree: PathBuf,
source: Error,
},
QueryFileChange {
wt_path: PathBuf,
source: Error,
},
}Available on crate feature
git-libgit2 only.Expand description
Errors returned by libgit2 backend 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.
Discover
Searching for a Git repository failed.
Fields
Open
Opening a Git repository failed.
Fields
QueryRepositoryChanges
Querying repository changes failed.
Fields
QueryFileChange
Querying file change failed.
Trait Implementations§
Source§impl Debug for Libgit2BackendError
impl Debug for Libgit2BackendError
Source§impl Display for Libgit2BackendError
impl Display for Libgit2BackendError
Source§impl Error for Libgit2BackendError
impl Error for Libgit2BackendError
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 ErrorCompat for Libgit2BackendError
impl ErrorCompat for Libgit2BackendError
Source§fn iter_chain(&self) -> ChainCompat<'_, '_>where
Self: AsErrorSource,
fn iter_chain(&self) -> ChainCompat<'_, '_>where
Self: AsErrorSource,
Returns an iterator for traversing the chain of errors,
starting with the current error
and continuing with recursive calls to
Error::source. Read moreSource§impl From<Libgit2BackendError> for ModifyGuardError
impl From<Libgit2BackendError> for ModifyGuardError
Source§fn from(source: Libgit2BackendError) -> Self
fn from(source: Libgit2BackendError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for Libgit2BackendError
impl RefUnwindSafe for Libgit2BackendError
impl Send for Libgit2BackendError
impl Sync for Libgit2BackendError
impl Unpin for Libgit2BackendError
impl UnsafeUnpin for Libgit2BackendError
impl UnwindSafe for Libgit2BackendError
Blanket Implementations§
Source§impl<T> AsErrorSource for Twhere
T: Error + 'static,
impl<T> AsErrorSource for Twhere
T: Error + 'static,
Source§fn as_error_source(&self) -> &(dyn Error + 'static)
fn as_error_source(&self) -> &(dyn Error + 'static)
For maximum effectiveness, this needs to be called as a method
to benefit from Rust’s automatic dereferencing of method
receivers.
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