Skip to main content

Step

Enum Step 

Source
pub enum Step {
    Advanced(String),
    Conflict,
    Unsafe {
        strategy: &'static str,
        violation: Violation,
    },
    Unavailable(String),
}
Expand description

What a speculator did with one change.

Variants§

§

Advanced(String)

The change applied. This is the new speculative state.

§

Conflict

First-class conflict: the change is evicted for its author to resolve, and the train continues without it (D6).

§

Unsafe

A resolution applied edits the change never proposed.

Distinct from Step::Conflict because the author’s change may be perfectly fine and the strategy at fault, which is a different escalation. An implementation with a single non-negotiable merge rule — git’s — can never return this, and saying so is more useful than pretending the case is shared.

Fields

§strategy: &'static str

The strategy whose resolution violated the invariant.

§violation: Violation

The unattributable lines, as evidence for escalation.

§

Unavailable(String)

The speculator could not form an opinion: a broken worktree, a state that is not a state, git not on the path.

Not a conflict and not a failure. Blaming an author for our own inability to run a merge is the mistake D18’s four verdicts exist to prevent, one level up; the queue stalls on this exactly as it stalls on a provider fault, and nobody is evicted.

Trait Implementations§

Source§

impl Debug for Step

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl Freeze for Step

§

impl RefUnwindSafe for Step

§

impl Send for Step

§

impl Sync for Step

§

impl Unpin for Step

§

impl UnsafeUnpin for Step

§

impl UnwindSafe for Step

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.