Enum sim::scheduler::Command [−][src]
pub(crate) enum Command { SpawnCar(CreateCar, bool), SpawnPed(CreatePedestrian), StartTrip(TripID, StartTripArgs), UpdateCar(CarID), UpdateLaggyHead(CarID), UpdatePed(PedestrianID), UpdateIntersection(IntersectionID), Callback(Duration), Pandemic(Cmd), StartBus(BusRouteID, Time), }
Variants
If true, retry when there’s no room to spawn somewhere
SpawnPed(CreatePedestrian)
StartTrip(TripID, StartTripArgs)
UpdateCar(CarID)
UpdateLaggyHead(CarID)
Distinguish this from UpdateCar to avoid confusing things
UpdatePed(PedestrianID)
UpdateIntersection(IntersectionID)
Callback(Duration)
Pandemic(Cmd)
StartBus(BusRouteID, Time)
The Time is redundant, just used to dedupe commands
Implementations
impl Command
[src]
impl Command
[src]pub fn update_agent(id: AgentID) -> Command
[src]
fn to_type(&self) -> CommandType
[src]
fn to_simple_type(&self) -> SimpleCommandType
[src]
Trait Implementations
impl<'de> Deserialize<'de> for Command
[src]
impl<'de> Deserialize<'de> for Command
[src]fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl StructuralPartialEq for Command
[src]
Auto Trait Implementations
impl RefUnwindSafe for Command
impl Send for Command
impl Sync for Command
impl Unpin for Command
impl UnwindSafe for Command
Blanket Implementations
impl<T> Downcast for T where
T: Any,
impl<T> Downcast for T where
T: Any,
impl<T> Instrument for T
[src]
impl<T> Instrument for T
[src]pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T> Same<T> for T
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
pub fn vzip(self) -> V
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,