pub enum RebaseErrorKind {
Show 14 variants
InvalidRevision {
revision: String,
},
DirtyWorkingTree,
ConcurrentOperation {
operation: String,
},
RepositoryCorrupt {
details: String,
},
EnvironmentFailure {
reason: String,
},
HookRejection {
hook_name: String,
},
ContentConflict {
files: Vec<String>,
},
PatchApplicationFailed {
reason: String,
},
InteractiveStop {
command: String,
},
EmptyCommit,
AutostashFailed {
reason: String,
},
CommitCreationFailed {
reason: String,
},
ReferenceUpdateFailed {
reason: String,
},
Unknown {
details: String,
},
}Expand description
Detailed classification of rebase failure modes.
This enum categorizes all known Git rebase failure modes as documented in the requirements. Each variant represents a specific category of failure that may occur during a rebase operation.
Variants§
InvalidRevision
Invalid or unresolvable revisions (branch doesn’t exist, invalid ref, etc.)
DirtyWorkingTree
Dirty working tree or index (unstaged or staged changes present)
ConcurrentOperation
Concurrent or in-progress Git operations (rebase, merge, cherry-pick, etc.)
RepositoryCorrupt
Repository integrity or storage failures (missing/corrupt objects, disk full, etc.)
EnvironmentFailure
Environment or configuration failures (missing user.name, editor unavailable, etc.)
HookRejection
Hook-triggered aborts (pre-rebase hook rejected the operation)
ContentConflict
Content conflicts (textual merge conflicts, add/add, modify/delete, etc.)
PatchApplicationFailed
Patch application failures (patch does not apply, context mismatch, etc.)
InteractiveStop
Interactive todo-driven stops (edit, reword, break, exec commands)
EmptyCommit
Empty or redundant commits (patch results in no changes)
AutostashFailed
Autostash and stash reapplication failures
CommitCreationFailed
Commit creation failures mid-rebase (hook failures, signing failures, etc.)
ReferenceUpdateFailed
Reference update failures (cannot lock branch ref, concurrent ref update, etc.)
Unknown
Undefined or unknown failure modes
Implementations§
Source§impl RebaseErrorKind
impl RebaseErrorKind
Sourcepub fn description(&self) -> String
pub fn description(&self) -> String
Returns a human-readable description of the error.
Trait Implementations§
Source§impl Clone for RebaseErrorKind
impl Clone for RebaseErrorKind
Source§fn clone(&self) -> RebaseErrorKind
fn clone(&self) -> RebaseErrorKind
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for RebaseErrorKind
impl Debug for RebaseErrorKind
Source§impl Display for RebaseErrorKind
impl Display for RebaseErrorKind
Source§impl Error for RebaseErrorKind
impl Error for RebaseErrorKind
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
Source§impl PartialEq for RebaseErrorKind
impl PartialEq for RebaseErrorKind
impl Eq for RebaseErrorKind
impl StructuralPartialEq for RebaseErrorKind
Auto Trait Implementations§
impl Freeze for RebaseErrorKind
impl RefUnwindSafe for RebaseErrorKind
impl Send for RebaseErrorKind
impl Sync for RebaseErrorKind
impl Unpin for RebaseErrorKind
impl UnwindSafe for RebaseErrorKind
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more