#[non_exhaustive]pub enum GixBackendError {
Discover {
path: PathBuf,
source: Error,
},
Open {
path: PathBuf,
source: Error,
},
Status {
worktree: PathBuf,
source: Error,
},
StatusIntoIter {
worktree: PathBuf,
source: Error,
},
IterateStatus {
worktree: PathBuf,
source: Error,
},
}Available on crate feature
git-gix only.Expand description
Errors returned by gix 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
Status
Querying the status of a Git repository failed.
Fields
StatusIntoIter
Converting the status of a Git repository into an iterator failed.
Fields
IterateStatus
Iterating over the status of a Git repository failed.
Trait Implementations§
Source§impl Debug for GixBackendError
impl Debug for GixBackendError
Source§impl Display for GixBackendError
impl Display for GixBackendError
Source§impl Error for GixBackendError
impl Error for GixBackendError
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 GixBackendError
impl ErrorCompat for GixBackendError
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<GixBackendError> for ModifyGuardError
impl From<GixBackendError> for ModifyGuardError
Source§fn from(source: GixBackendError) -> Self
fn from(source: GixBackendError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for GixBackendError
impl !UnwindSafe for GixBackendError
impl Freeze for GixBackendError
impl Send for GixBackendError
impl Sync for GixBackendError
impl Unpin for GixBackendError
impl UnsafeUnpin for GixBackendError
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