pub enum DispatchDecision {
Dispatch {
departure_s: f64,
},
Wait {
next_departure_s: Option<f64>,
wait_s: Option<f64>,
},
}Expand description
Decision returned by a dispatch policy.
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 PartialEq for DispatchDecision
impl PartialEq for DispatchDecision
impl Copy 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