pub enum CommitError {
Ref(RefError),
Io(Error),
Serde(Error),
PartialCommit,
InconsistentRefState {
epoch: Option<GitOid>,
branch: Option<GitOid>,
},
}Expand description
COMMIT phase and merge-state errors.
Variants§
Ref(RefError)
Io(Error)
Serde(Error)
PartialCommit
Epoch was advanced but branch ref update failed.
This is recoverable by calling recover_partial_commit.
InconsistentRefState
Ref state does not match any expected crash-recovery shape.
Trait Implementations§
Source§impl Debug for CommitError
impl Debug for CommitError
Source§impl Display for CommitError
impl Display for CommitError
Source§impl Error for CommitError
impl Error for CommitError
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 From<Error> for CommitError
impl From<Error> for CommitError
Source§impl From<Error> for CommitError
impl From<Error> for CommitError
Auto Trait Implementations§
impl Freeze for CommitError
impl !RefUnwindSafe for CommitError
impl Send for CommitError
impl Sync for CommitError
impl Unpin for CommitError
impl UnsafeUnpin for CommitError
impl !UnwindSafe for CommitError
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