pub enum DispatchDecision {
Dispatch,
Refuse(DispatchRefusal),
}Expand description
The verdict of the dispatch gate.
Variants§
Dispatch
Authority is committed and the target is free; the effect may start.
Refuse(DispatchRefusal)
The effect must not start, with the durable reason.
Implementations§
Source§impl DispatchDecision
impl DispatchDecision
pub fn is_dispatch(&self) -> bool
pub fn refusal(&self) -> Option<DispatchRefusal>
Trait Implementations§
Source§impl Clone for DispatchDecision
impl Clone for DispatchDecision
Source§fn clone(&self) -> DispatchDecision
fn clone(&self) -> DispatchDecision
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 DispatchDecision
impl Debug for DispatchDecision
impl Eq for DispatchDecision
Source§impl PartialEq for DispatchDecision
impl PartialEq for DispatchDecision
Source§impl Serialize for DispatchDecision
impl Serialize for DispatchDecision
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for DispatchDecision
Auto Trait Implementations§
impl Forget for DispatchDecision
impl Freeze for DispatchDecision
impl Move for DispatchDecision
impl RefUnwindSafe for DispatchDecision
impl Send for DispatchDecision
impl Sync for DispatchDecision
impl Unpin for DispatchDecision
impl UnsafeUnpin for DispatchDecision
impl UnwindSafe for DispatchDecision
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.