pub enum RebaseResult {
Rebased {
behind: usize,
},
WouldRebase {
behind: usize,
},
UpToDate,
Skipped {
reason: SkipReason,
},
Conflict {
detail: String,
left_in_place: bool,
},
FetchFailed {
detail: String,
},
}Expand description
Variants§
Rebased
Rebased onto the fetched ref; it was behind commits behind beforehand.
WouldRebase
Would be rebased (dry run); it is behind commits behind.
UpToDate
Already on top of the onto ref — nothing to do.
Skipped
Skipped without touching the worktree, for a structural reason.
Fields
§
reason: SkipReasonWhy it was skipped.
Conflict
The rebase hit conflicts. By default it was aborted and the worktree left
untouched; with RebaseOptions::keep_conflicts the worktree is instead
left mid-rebase, which left_in_place records.
Fields
FetchFailed
The repository’s one-shot fetch failed, so no worktree of it was attempted.
Trait Implementations§
Source§impl Clone for RebaseResult
impl Clone for RebaseResult
Source§fn clone(&self) -> RebaseResult
fn clone(&self) -> RebaseResult
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RebaseResult
impl Debug for RebaseResult
impl Eq for RebaseResult
Source§impl PartialEq for RebaseResult
impl PartialEq for RebaseResult
Source§impl Serialize for RebaseResult
impl Serialize for RebaseResult
impl StructuralPartialEq for RebaseResult
Auto Trait Implementations§
impl Freeze for RebaseResult
impl RefUnwindSafe for RebaseResult
impl Send for RebaseResult
impl Sync for RebaseResult
impl Unpin for RebaseResult
impl UnsafeUnpin for RebaseResult
impl UnwindSafe for RebaseResult
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
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
Compare self to
key and return true if they are equal.