#[non_exhaustive]pub enum EventKind {
Show 49 variants
ElevatorDeparted,
ElevatorArrived,
DoorOpened,
DoorClosed,
PassingFloor,
MovementAborted,
RiderSpawned,
RiderBoarded,
RiderExited,
RiderRejected,
RiderAbandoned,
RiderEjected,
ElevatorAssigned,
StopAdded,
ElevatorAdded,
EntityDisabled,
EntityEnabled,
RouteInvalidated,
RiderRerouted,
RiderSettled,
RiderDespawned,
LineAdded,
LineRemoved,
LineReassigned,
ElevatorReassigned,
ElevatorRepositioning,
ElevatorRepositioned,
ElevatorRecalled,
ServiceModeChanged,
EnergyConsumed,
CapacityChanged,
ElevatorIdle,
DirectionIndicatorChanged,
ElevatorRemoved,
DestinationQueued,
StopRemoved,
DoorCommandQueued,
DoorCommandApplied,
ElevatorUpgraded,
ManualVelocityCommanded,
HallButtonPressed,
HallCallAcknowledged,
HallCallCleared,
CarButtonPressed,
RiderSkipped,
SnapshotDanglingReference,
RepositionStrategyNotRestored,
DispatchConfigNotRestored,
ResidentsAtRemovedStop,
}Expand description
Discriminant for Event — the unit-variant projection of the
payload-carrying enum.
Strategies, hosts, and FFI consumers use EventKind to filter
events without pattern-matching against payload-laden variants.
Filtering is the primary use case;
Simulation::drain_events_by_kind
takes a &[EventKind] so closure-free filtering crosses the
FFI/wasm/gdext boundary that closure-based
drain_events_where
can’t.
One-to-one with Event variants. Mirrors the same #[non_exhaustive]
and #[cfg(feature = "energy")] gates so hosts compiled without the
energy feature don’t see EventKind::EnergyConsumed.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
ElevatorDeparted
ElevatorArrived
DoorOpened
See Event::DoorOpened.
DoorClosed
See Event::DoorClosed.
PassingFloor
See Event::PassingFloor.
MovementAborted
RiderSpawned
See Event::RiderSpawned.
RiderBoarded
See Event::RiderBoarded.
RiderExited
See Event::RiderExited.
RiderRejected
See Event::RiderRejected.
RiderAbandoned
RiderEjected
See Event::RiderEjected.
ElevatorAssigned
StopAdded
See Event::StopAdded.
ElevatorAdded
See Event::ElevatorAdded.
EntityDisabled
EntityEnabled
See Event::EntityEnabled.
RouteInvalidated
RiderRerouted
See Event::RiderRerouted.
RiderSettled
See Event::RiderSettled.
RiderDespawned
LineAdded
See Event::LineAdded.
LineRemoved
See Event::LineRemoved.
LineReassigned
ElevatorReassigned
ElevatorRepositioning
ElevatorRepositioned
ElevatorRecalled
ServiceModeChanged
EnergyConsumed
CapacityChanged
ElevatorIdle
See Event::ElevatorIdle.
DirectionIndicatorChanged
ElevatorRemoved
DestinationQueued
StopRemoved
See Event::StopRemoved.
DoorCommandQueued
DoorCommandApplied
ElevatorUpgraded
ManualVelocityCommanded
HallButtonPressed
HallCallAcknowledged
HallCallCleared
CarButtonPressed
RiderSkipped
See Event::RiderSkipped.
SnapshotDanglingReference
RepositionStrategyNotRestored
DispatchConfigNotRestored
ResidentsAtRemovedStop
Trait Implementations§
Source§impl<'de> Deserialize<'de> for EventKind
impl<'de> Deserialize<'de> for EventKind
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>,
impl Copy for EventKind
impl Eq for EventKind
impl StructuralPartialEq for EventKind
Auto Trait Implementations§
impl Freeze for EventKind
impl RefUnwindSafe for EventKind
impl Send for EventKind
impl Sync for EventKind
impl Unpin for EventKind
impl UnsafeUnpin for EventKind
impl UnwindSafe for EventKind
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
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
key and return true if they are equal.