[][src]Enum sim::scheduler::Command

pub(crate) enum Command {
    SpawnCar(CreateCarbool),
    SpawnPed(CreatePedestrian),
    StartTrip(TripIDTripSpec),
    UpdateCar(CarID),
    UpdateLaggyHead(CarID),
    UpdatePed(PedestrianID),
    UpdateIntersection(IntersectionID),
    Callback(Duration),
    Pandemic(Cmd),
    StartBus(BusRouteIDTime),
}

Variants

SpawnCar(CreateCarbool)

If true, retry when there's no room to spawn somewhere

SpawnPed(CreatePedestrian)
StartTrip(TripIDTripSpec)
UpdateCar(CarID)
UpdateLaggyHead(CarID)

Distinguish this from UpdateCar to avoid confusing things

UpdatePed(PedestrianID)
UpdateIntersection(IntersectionID)
Callback(Duration)
Pandemic(Cmd)
StartBus(BusRouteIDTime)

The Time is redundant, just used to dedupe commands

Implementations

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 Clone for Command[src]

impl Debug for Command[src]

impl<'de> Deserialize<'de> for Command[src]

impl PartialEq<Command> for Command[src]

impl Serialize for Command[src]

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> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> Downcast for T where
    T: Any

impl<T> DowncastSync for T where
    T: Send + Sync + Any

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,