#[non_exhaustive]pub enum DispatchDecision {
GoToStop(EntityId),
Idle,
}Expand description
Decision returned by a dispatch strategy.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
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 · 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
Source§impl<'de> Deserialize<'de> for DispatchDecision
impl<'de> Deserialize<'de> for DispatchDecision
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for DispatchDecision
impl PartialEq for DispatchDecision
Source§impl Serialize for DispatchDecision
impl Serialize for DispatchDecision
impl Eq for DispatchDecision
impl StructuralPartialEq for DispatchDecision
Auto Trait Implementations§
impl Freeze 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