Enum sos_sdk::commit::CommitRelationship
source · pub enum CommitRelationship {
Equal(CommitPair),
Ahead(CommitPair, usize),
Behind(CommitPair, usize),
Diverged(CommitPair),
}Expand description
Relationship between two trees.
Variants§
Equal(CommitPair)
Local and remote are equal.
Ahead(CommitPair, usize)
Local tree is ahead of the remote.
A push operation should be successful.
Includes the number of commits ahead.
Behind(CommitPair, usize)
Local tree is behind the remote.
A pull operation should be successful.
Includes the number of commits behind.
Diverged(CommitPair)
Commit trees have diverged and either a force push or force pull is required to synchronize.
Implementations§
source§impl CommitRelationship
impl CommitRelationship
sourcepub fn pair(&self) -> &CommitPair
pub fn pair(&self) -> &CommitPair
Get the pair of local and remote commit proofs.
Trait Implementations§
source§impl Debug for CommitRelationship
impl Debug for CommitRelationship
Auto Trait Implementations§
impl RefUnwindSafe for CommitRelationship
impl Send for CommitRelationship
impl Sync for CommitRelationship
impl Unpin for CommitRelationship
impl UnwindSafe for CommitRelationship
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