pub enum SignalDispatchRefusal {
CompositionMismatch {
expected: CompositionId,
actual: CompositionId,
},
UnresolvedRoute {
composition: CompositionId,
instance: MachineInstanceId,
variant: EffectVariantId,
},
MissingProducerField {
route: RouteId,
variant: EffectVariantId,
field: FieldId,
},
UnwiredConsumer {
composition: CompositionId,
instance: MachineInstanceId,
},
ConsumerRefused {
instance: MachineInstanceId,
variant: SignalVariantId,
reason: String,
},
}Expand description
Reasons the signal dispatcher refuses a routed signal.
Variants§
CompositionMismatch
The producer is not registered for this dispatcher’s composition.
UnresolvedRoute
No signal-kind route is declared for (producer.instance_id, variant).
MissingProducerField
A route-binding references a producer field that the signal body did not supply.
UnwiredConsumer
No SignalConsumerSurface is registered for the resolved target
instance.
ConsumerRefused
The consumer surface rejected the typed signal.
Trait Implementations§
Source§impl Clone for SignalDispatchRefusal
impl Clone for SignalDispatchRefusal
Source§fn clone(&self) -> SignalDispatchRefusal
fn clone(&self) -> SignalDispatchRefusal
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 SignalDispatchRefusal
impl Debug for SignalDispatchRefusal
Source§impl Display for SignalDispatchRefusal
impl Display for SignalDispatchRefusal
Source§impl Error for SignalDispatchRefusal
impl Error for SignalDispatchRefusal
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 SignalDispatchRefusal
impl PartialEq for SignalDispatchRefusal
Source§fn eq(&self, other: &SignalDispatchRefusal) -> bool
fn eq(&self, other: &SignalDispatchRefusal) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for SignalDispatchRefusal
impl StructuralPartialEq for SignalDispatchRefusal
Auto Trait Implementations§
impl Freeze for SignalDispatchRefusal
impl RefUnwindSafe for SignalDispatchRefusal
impl Send for SignalDispatchRefusal
impl Sync for SignalDispatchRefusal
impl Unpin for SignalDispatchRefusal
impl UnsafeUnpin for SignalDispatchRefusal
impl UnwindSafe for SignalDispatchRefusal
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
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
Compare self to
key and return true if they are equal.