pub enum TrackingStat {
UpToDate,
Gone {
display_name: String,
},
Diverged {
display_name: String,
ahead: usize,
behind: usize,
},
}Expand description
Outcome of comparing refs/heads/<branch> to a tracking ref.
Variants§
UpToDate
Tips are the same commit.
Gone
Tracking ref is missing (gone upstream).
Diverged
Tips differ; counts are zero in AheadBehindMode::Quick mode.
Trait Implementations§
Source§impl Clone for TrackingStat
impl Clone for TrackingStat
Source§fn clone(&self) -> TrackingStat
fn clone(&self) -> TrackingStat
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for TrackingStat
impl RefUnwindSafe for TrackingStat
impl Send for TrackingStat
impl Sync for TrackingStat
impl Unpin for TrackingStat
impl UnsafeUnpin for TrackingStat
impl UnwindSafe for TrackingStat
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