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
Command preparation failure.
WorkArea
An error occurred when working with the workarea.
Fields
§
source: WorkAreaError
The cause of the error.
Commit
An error occurred when working with a commit.
Fields
§
source: CommitError
The cause of the error.
UpdateRef
Failure to create a ref to refer to the checked commit.
RevList
Failure to list revisions to check.
Trait Implementations§
source§impl Error for RunError
impl Error for RunError
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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 From<CommitError> for RunError
impl From<CommitError> for RunError
source§fn from(source: CommitError) -> Self
fn from(source: CommitError) -> Self
Converts to this type from the input type.
source§impl From<WorkAreaError> for RunError
impl From<WorkAreaError> for RunError
source§fn from(source: WorkAreaError) -> Self
fn from(source: WorkAreaError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for RunError
impl !RefUnwindSafe for RunError
impl Send for RunError
impl Sync for RunError
impl Unpin for RunError
impl !UnwindSafe for RunError
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