Skip to main content

StepFailure

Type Alias StepFailure 

pub type StepFailure<P, S, A = Accept> = StepError<<P as SyncPeer>::Error, <S as WriteGroupStore>::Error, <S as IngestStore>::Error, <A as Adjudicate>::Error>;
Expand description

The error Edge::step returns for a peer P, a store S and the edge’s merge rule A.

A defaults to Accept, whose error is Infallible, so StepFailure<P, S> still names the error of an edge that judges nothing.

Aliased Type§

pub enum StepFailure<P, S, A = Accept> {
    Stopped(StopCause),
    Parked(Failure),
    Incarnation(IncarnationChanged),
    Pull(<P as SyncPeer>::Error),
    Ingest(IngestError<<S as IngestStore>::Error>),
    Read(<S as WriteGroupStore>::Error),
    Push(<P as SyncPeer>::Error),
    Adjudicate(<A as Adjudicate>::Error),
}

Variants§

§

Stopped(StopCause)

The edge was already stopped, for the cause named; nothing was done.

§

Parked(Failure)

The edge was already parked, by the failure named; nothing was done.

§

Incarnation(IncarnationChanged)

The far side answered as a different store; the answer was not acted on, and the edge is now stopped.

§

Pull(<P as SyncPeer>::Error)

The pull failed.

§

Ingest(IngestError<<S as IngestStore>::Error>)

The pulled batch did not land locally; nothing in it was written.

§

Read(<S as WriteGroupStore>::Error)

Reading the local log failed.

§

Push(<P as SyncPeer>::Error)

The far side refused or failed the push; the local log is unchanged.

§

Adjudicate(<A as Adjudicate>::Error)

The edge’s merge rule could not judge the pulled batch; nothing in it was written, and the pull token did not advance.