pub struct PassengerSpawnConfig {
pub mean_interval_ticks: u32,
pub weight_range: (f64, f64),
}Expand description
Passenger spawning parameters (used by the game layer).
The core simulation does not spawn passengers automatically; these values are advisory and consumed by game code or traffic generators.
This struct is always available regardless of feature flags. The built-in
traffic generation that consumes it requires the traffic feature.
Fields§
§mean_interval_ticks: u32Mean interval in ticks between passenger spawns.
Used by traffic generators for Poisson-distributed arrivals.
Units: simulation ticks.
Default (from SimulationBuilder): 120.
weight_range: (f64, f64)(min, max) weight range for randomly spawned passengers.
Weights are drawn uniformly from this range by traffic generators.
Units: same as elevator weight_capacity (typically kilograms).
Default (from SimulationBuilder): (50.0, 100.0).
Trait Implementations§
Source§impl Clone for PassengerSpawnConfig
impl Clone for PassengerSpawnConfig
Source§fn clone(&self) -> PassengerSpawnConfig
fn clone(&self) -> PassengerSpawnConfig
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 PassengerSpawnConfig
impl Debug for PassengerSpawnConfig
Source§impl<'de> Deserialize<'de> for PassengerSpawnConfig
impl<'de> Deserialize<'de> for PassengerSpawnConfig
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
Auto Trait Implementations§
impl Freeze for PassengerSpawnConfig
impl RefUnwindSafe for PassengerSpawnConfig
impl Send for PassengerSpawnConfig
impl Sync for PassengerSpawnConfig
impl Unpin for PassengerSpawnConfig
impl UnsafeUnpin for PassengerSpawnConfig
impl UnwindSafe for PassengerSpawnConfig
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