pub enum CommitPatchError {
Select(HunkSelectError),
Apply(ApplyError),
Commit(Error),
}Expand description
Failure while resolving or applying a patch-scoped commit.
Variants§
Select(HunkSelectError)
Hunk id resolution failed (unknown, stale, wrong side, binary).
Apply(ApplyError)
Index apply failed after resolution.
Commit(Error)
Commit, index, or repository error.
Trait Implementations§
Source§impl Debug for CommitPatchError
impl Debug for CommitPatchError
Source§impl Display for CommitPatchError
impl Display for CommitPatchError
Source§impl Error for CommitPatchError
impl Error for CommitPatchError
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<ApplyError> for CommitPatchError
impl From<ApplyError> for CommitPatchError
Source§fn from(source: ApplyError) -> Self
fn from(source: ApplyError) -> Self
Converts to this type from the input type.
Source§impl From<Error> for CommitPatchError
impl From<Error> for CommitPatchError
Source§impl From<HunkSelectError> for CommitPatchError
impl From<HunkSelectError> for CommitPatchError
Source§fn from(source: HunkSelectError) -> Self
fn from(source: HunkSelectError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for CommitPatchError
impl !UnwindSafe for CommitPatchError
impl Freeze for CommitPatchError
impl Send for CommitPatchError
impl Sync for CommitPatchError
impl Unpin for CommitPatchError
impl UnsafeUnpin for CommitPatchError
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