pub struct ElevatorParams {
pub max_speed: f64,
pub acceleration: f64,
pub deceleration: f64,
pub weight_capacity: f64,
pub door_transition_ticks: u32,
pub door_open_ticks: u32,
pub restricted_stops: HashSet<EntityId>,
pub inspection_speed_factor: f64,
}Expand description
Parameters for creating a new elevator at runtime.
Fields§
§max_speed: f64Maximum travel speed (distance/tick).
acceleration: f64Acceleration rate (distance/tick^2).
deceleration: f64Deceleration rate (distance/tick^2).
weight_capacity: f64Maximum weight the car can carry.
door_transition_ticks: u32Ticks for a door open/close transition.
door_open_ticks: u32Ticks the door stays fully open.
restricted_stops: HashSet<EntityId>Stop entity IDs this elevator cannot serve (access restriction).
inspection_speed_factor: f64Speed multiplier for Inspection mode (0.0..1.0).
Trait Implementations§
Source§impl Clone for ElevatorParams
impl Clone for ElevatorParams
Source§fn clone(&self) -> ElevatorParams
fn clone(&self) -> ElevatorParams
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 ElevatorParams
impl Debug for ElevatorParams
Auto Trait Implementations§
impl Freeze for ElevatorParams
impl RefUnwindSafe for ElevatorParams
impl Send for ElevatorParams
impl Sync for ElevatorParams
impl Unpin for ElevatorParams
impl UnsafeUnpin for ElevatorParams
impl UnwindSafe for ElevatorParams
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