pub enum RolloutTransitionError {
IllegalForState {
from: RolloutState,
event: &'static str,
rollout_id: RolloutId,
},
SupersessionExpected {
rollout_id: RolloutId,
channel: String,
},
Invariant(&'static str),
Unimplemented {
from: RolloutState,
event: &'static str,
},
}Variants§
IllegalForState
The event is not legal from the current RolloutState. Typically
out-of-order arrival (e.g., RolloutTerminal from Opening before
any host joined).
SupersessionExpected
A RolloutOpened arrived for a (channel, ref) whose channel
already has an active_rollout_id. The planner must emit
SuccessorOpened first (RFC-0008 §3 invariant).
Invariant(&'static str)
Invariant from RFC-0008 §3 violated by the event’s payload (e.g.,
RolloutTerminal while at least one host is not Converged).
Unimplemented
Reducer arm not yet implemented. Returned by the Phase 10a skeleton; every variant gets a real arm in Phase 10b. Should never be reached after Phase 10 closes — if it is, that’s a code defect.
Trait Implementations§
Source§impl Clone for RolloutTransitionError
impl Clone for RolloutTransitionError
Source§fn clone(&self) -> RolloutTransitionError
fn clone(&self) -> RolloutTransitionError
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 RolloutTransitionError
impl Debug for RolloutTransitionError
Source§impl Display for RolloutTransitionError
impl Display for RolloutTransitionError
Source§impl Error for RolloutTransitionError
impl Error for RolloutTransitionError
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 RolloutTransitionError
impl PartialEq for RolloutTransitionError
impl StructuralPartialEq for RolloutTransitionError
Auto Trait Implementations§
impl Freeze for RolloutTransitionError
impl RefUnwindSafe for RolloutTransitionError
impl Send for RolloutTransitionError
impl Sync for RolloutTransitionError
impl Unpin for RolloutTransitionError
impl UnwindSafe for RolloutTransitionError
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