Enum StepError
#[non_exhaustive]pub enum StepError<P, R, I, A = Infallible> {
Stopped(StopCause),
Parked(Failure),
Incarnation(IncarnationChanged),
Pull(P),
Ingest(IngestError<I>),
Read(R),
Push(P),
Adjudicate(A),
}Expand description
Why Edge::step failed: the phase, and the failure it
met.
P is the peer’s error, R the local store’s group-read error, I its
ingest error and A the edge’s merge rule’s error. They are separate
because a store may implement WriteGroupStore and IngestStore with
different error types. No bounds sit on the enum, so it is Send exactly
when the four are, and a !Send adapter’s error stays legal (ADR-0009).
A defaults to Infallible, the error of Accept, so
StepError<P, R, I> still names the error of an edge that judges nothing.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
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)
The pull failed.
Ingest(IngestError<I>)
The pulled batch did not land locally; nothing in it was written.
Read(R)
Reading the local log failed.
Push(P)
The far side refused or failed the push; the local log is unchanged.
Adjudicate(A)
The edge’s merge rule could not judge the pulled batch; nothing in it was written, and the pull token did not advance.
Implementations§
Trait Implementations§
§impl<P: Classify, R: Classify, I: Classify, A: Classify> Classify for StepError<P, R, I, A>
impl<P: Classify, R: Classify, I: Classify, A: Classify> Classify for StepError<P, R, I, A>
§fn class(&self) -> FailureClass
fn class(&self) -> FailureClass
§impl<P, R, I, A> Error for StepError<P, R, I, A>
impl<P, R, I, A> Error for StepError<P, R, I, A>
§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()