pub enum RouteTableError {
DuplicateInputRoute {
instance: MachineInstanceId,
variant: EffectVariantId,
existing_route: RouteId,
duplicate_route: RouteId,
},
DuplicateSignalRoute {
instance: MachineInstanceId,
variant: EffectVariantId,
existing_route: RouteId,
duplicate_route: RouteId,
},
InputRouteCarriesSignalVariant {
route: RouteId,
variant: String,
},
SignalRouteCarriesInputVariant {
route: RouteId,
variant: String,
},
}Expand description
Errors surfaced when building a RouteTable from a schema.
Variants§
DuplicateInputRoute
Two routes declared for the same (producer_instance, variant) pair.
Wave-b V2 requires unique routing per producer variant; multi-target
fan-out is explicitly out of scope.
DuplicateSignalRoute
Two signal routes declared for the same (producer_instance, variant) pair. Signal routes are a typed dispatch surface too,
so duplicate declarations are rejected instead of last-writer
silently winning.
InputRouteCarriesSignalVariant
An Input-kind route carried a Signal-typed variant id. Schema validation normally rejects this at declaration time; the table builder surfaces it as a typed error rather than panicking so callers handling hand-assembled schemas see a deterministic failure instead of a crash.
SignalRouteCarriesInputVariant
A Signal-kind route carried an Input-typed variant id. Schema validation normally rejects this at declaration time; the table builder returns a typed error to keep malformed hand-assembled schemas deterministic.
Trait Implementations§
Source§impl Clone for RouteTableError
impl Clone for RouteTableError
Source§fn clone(&self) -> RouteTableError
fn clone(&self) -> RouteTableError
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for RouteTableError
impl Debug for RouteTableError
Source§impl Display for RouteTableError
impl Display for RouteTableError
Source§impl Error for RouteTableError
impl Error for RouteTableError
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 RouteTableError
impl PartialEq for RouteTableError
Source§fn eq(&self, other: &RouteTableError) -> bool
fn eq(&self, other: &RouteTableError) -> bool
self and other values to be equal, and is used by ==.impl Eq for RouteTableError
impl StructuralPartialEq for RouteTableError
Auto Trait Implementations§
impl Freeze for RouteTableError
impl RefUnwindSafe for RouteTableError
impl Send for RouteTableError
impl Sync for RouteTableError
impl Unpin for RouteTableError
impl UnsafeUnpin for RouteTableError
impl UnwindSafe for RouteTableError
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
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.