#[non_exhaustive]pub enum StackBaseOutcome {
Created,
Advanced,
Unchanged,
Conflicted {
session: SessionToken,
conflict: OpenConflict,
},
}Expand description
What one assembly of a stack base found to do.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Created
The branch did not exist: it was cut from the root, each parent merged in order, and pushed as a new ref.
Advanced
The branch existed and something it did not carry was merged — the root’s head, a parent’s — and pushed forward-only.
Unchanged
The branch already carried the root’s head and every parent’s, and the origin already had it. Nothing was merged and nothing was pushed.
Conflicted
A merge conflicted and is left in progress in session’s worktree, for the
session to conclude; nothing was pushed. The same request, made again once the
merge is committed, merges what is left and pushes.
Fields
§
session: SessionTokenThe session holding the merge.
§
conflict: OpenConflictThe merge it holds.
Trait Implementations§
Source§impl Clone for StackBaseOutcome
impl Clone for StackBaseOutcome
Source§impl Debug for StackBaseOutcome
impl Debug for StackBaseOutcome
Source§impl<'de> Deserialize<'de> for StackBaseOutcome
impl<'de> Deserialize<'de> for StackBaseOutcome
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for StackBaseOutcome
Source§impl PartialEq for StackBaseOutcome
impl PartialEq for StackBaseOutcome
Source§impl Serialize for StackBaseOutcome
impl Serialize for StackBaseOutcome
impl StructuralPartialEq for StackBaseOutcome
Auto Trait Implementations§
impl Freeze for StackBaseOutcome
impl RefUnwindSafe for StackBaseOutcome
impl Send for StackBaseOutcome
impl Sync for StackBaseOutcome
impl Unpin for StackBaseOutcome
impl UnsafeUnpin for StackBaseOutcome
impl UnwindSafe for StackBaseOutcome
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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.