Enum git_checks_core::RunError
source · [−]#[non_exhaustive]
pub enum RunError {
Git {
source: GitError,
},
WorkArea {
source: WorkAreaError,
},
Commit {
source: CommitError,
},
UpdateRef {
base_ref: CommitId,
output: String,
},
RevList {
base_ref: CommitId,
new_ref: CommitId,
output: String,
},
}
Expand description
Errors which can occur when running checks.
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.
Git
Fields
source: GitError
The cause of the error.
Command preparation failure.
WorkArea
Fields
source: WorkAreaError
The cause of the error.
An error occurred when working with the workarea.
Commit
Fields
source: CommitError
The cause of the error.
An error occurred when working with a commit.
UpdateRef
Failure to create a ref to refer to the checked commit.
RevList
Fields
base_ref: CommitId
The base ref for the topic.
new_ref: CommitId
The head of the topic.
output: String
Git’s output for the error.
Failure to list revisions to check.
Trait Implementations
sourceimpl Error for RunError
impl Error for RunError
sourcefn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
sourcefn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
🔬 This is a nightly-only experimental API. (
backtrace
)Returns a stack backtrace, if available, of where this error occurred. Read more
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
👎 Deprecated since 1.42.0:
use the Display impl or to_string()
sourceimpl From<CommitError> for RunError
impl From<CommitError> for RunError
sourcefn from(source: CommitError) -> Self
fn from(source: CommitError) -> Self
Performs the conversion.
sourceimpl From<WorkAreaError> for RunError
impl From<WorkAreaError> for RunError
sourcefn from(source: WorkAreaError) -> Self
fn from(source: WorkAreaError) -> Self
Performs the conversion.
Auto Trait Implementations
impl RefUnwindSafe for RunError
impl Send for RunError
impl Sync for RunError
impl Unpin for RunError
impl UnwindSafe for RunError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more