pub enum SyncState {
Equal,
Ahead(usize),
Behind(usize),
Diverged {
ahead: usize,
behind: usize,
},
NoUpstream,
}
Expand description
Sync state relative to remote
Variants§
Equal
Local and remote are equal
Ahead(usize)
Local is ahead of remote
Behind(usize)
Local is behind remote
Diverged
Local and remote have diverged
NoUpstream
No upstream branch
Trait Implementations§
impl StructuralPartialEq for SyncState
Auto Trait Implementations§
impl Freeze for SyncState
impl RefUnwindSafe for SyncState
impl Send for SyncState
impl Sync for SyncState
impl Unpin for SyncState
impl UnwindSafe for SyncState
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