pub enum RegisterWaitError {
UnknownSubscriptionSet(SubscriptionSetId),
UnexpectedWheelRegion(Region),
}Expand description
register_wait’s one failure mode. See this module’s doc comment for why
this exists instead of the plan’s literal -> ().
Variants§
UnknownSubscriptionSet(SubscriptionSetId)
WaitSpec::ImplicitComb’s SubscriptionSetId had no entry in the
caller-supplied lookup (codegen’s real static-sensitivity table does
not exist yet in this wave — the plan’s own text names this as an
in-crate test fixture stand-in).
UnexpectedWheelRegion(Region)
TimeWheel::arm_delay is documented to return only
Region::Active or Region::Inactive. This variant exists purely so
this function’s own dispatch on that return value stays an
exhaustive match over the full 7-variant Region type with no
wildcard arm (this workspace’s “loud typed error, never a silent
no-op” posture), catching a future change to arm_delay’s contract
at this call site instead of silently mishandling it. sva T1 (§1.4,
review fix, blocking finding 2) folded Region::Preponed into this
same defensive arm alongside Nba/Reactive/Postponed; sva T2
(review fix, blocking finding 2), Observed’s half, folds
Region::Observed into it too, for the identical reason.
Trait Implementations§
Source§impl Clone for RegisterWaitError
impl Clone for RegisterWaitError
impl Copy for RegisterWaitError
Source§impl Debug for RegisterWaitError
impl Debug for RegisterWaitError
Source§impl Display for RegisterWaitError
impl Display for RegisterWaitError
impl Eq for RegisterWaitError
Source§impl Error for RegisterWaitError
impl Error for RegisterWaitError
1.30.0 · Source§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()
Source§impl PartialEq for RegisterWaitError
impl PartialEq for RegisterWaitError
impl StructuralPartialEq for RegisterWaitError
Auto Trait Implementations§
impl Freeze for RegisterWaitError
impl RefUnwindSafe for RegisterWaitError
impl Send for RegisterWaitError
impl Sync for RegisterWaitError
impl Unpin for RegisterWaitError
impl UnsafeUnpin for RegisterWaitError
impl UnwindSafe for RegisterWaitError
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.