pub enum TransitionError {
IllegalForState {
from: HostState,
event: &'static str,
rollout_id: RolloutId,
hostname: String,
},
SeqRegression {
got: u64,
last: u64,
rollout_id: RolloutId,
hostname: String,
},
Invariant(&'static str),
Unimplemented {
from: HostState,
event: &'static str,
},
}Variants§
IllegalForState
The event is not legal from the current HostState. The runtime
layer should typically log + drop (lost-ordering noise) and rely on
heartbeat drift-detection to recover via Replay-From (RFC-0005 §4.3).
SeqRegression
Event seq is not strictly greater than last_event_seq. Could be
a retransmit (idempotent, runtime dedupes on (host, rollout, seq))
or out-of-order arrival.
Invariant(&'static str)
Invariant from RFC-0005 §3 violated by the event’s payload (e.g.
Converged claimed but current != target). CP rejects the event
with 409 Conflict; agent retries after re-verifying.
Unimplemented
Reducer arm not yet implemented. Returned by the Phase 3a skeleton; every variant gets a real arm in Phase 3b. Should never be reached after Phase 3 closes — if it is, that’s a code defect.
Trait Implementations§
Source§impl Clone for TransitionError
impl Clone for TransitionError
Source§fn clone(&self) -> TransitionError
fn clone(&self) -> TransitionError
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TransitionError
impl Debug for TransitionError
Source§impl Display for TransitionError
impl Display for TransitionError
Source§impl Error for TransitionError
impl Error for TransitionError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl PartialEq for TransitionError
impl PartialEq for TransitionError
impl StructuralPartialEq for TransitionError
Auto Trait Implementations§
impl Freeze for TransitionError
impl RefUnwindSafe for TransitionError
impl Send for TransitionError
impl Sync for TransitionError
impl Unpin for TransitionError
impl UnwindSafe for TransitionError
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