pub struct GroupSnapshot {
pub id: GroupId,
pub name: String,
pub elevator_indices: Vec<usize>,
pub stop_indices: Vec<usize>,
pub strategy: BuiltinStrategy,
pub lines: Vec<LineSnapshotInfo>,
pub reposition: Option<BuiltinReposition>,
pub hall_call_mode: HallCallMode,
pub ack_latency_ticks: u32,
}Expand description
Serializable representation of an elevator group.
Fields§
§id: GroupIdGroup identifier.
name: StringGroup name.
elevator_indices: Vec<usize>Indices into the entities vec for elevators in this group.
stop_indices: Vec<usize>Indices into the entities vec for stops in this group.
strategy: BuiltinStrategyThe dispatch strategy used by this group.
lines: Vec<LineSnapshotInfo>Per-line snapshot data. Empty in legacy snapshots.
reposition: Option<BuiltinReposition>Optional repositioning strategy for idle elevators.
hall_call_mode: HallCallModeHall call mode for this group. Legacy snapshots default to Classic.
ack_latency_ticks: u32Controller ack latency in ticks. Legacy snapshots default to 0.
Trait Implementations§
Source§impl Clone for GroupSnapshot
impl Clone for GroupSnapshot
Source§fn clone(&self) -> GroupSnapshot
fn clone(&self) -> GroupSnapshot
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 GroupSnapshot
impl Debug for GroupSnapshot
Source§impl<'de> Deserialize<'de> for GroupSnapshot
impl<'de> Deserialize<'de> for GroupSnapshot
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 GroupSnapshot
impl RefUnwindSafe for GroupSnapshot
impl Send for GroupSnapshot
impl Sync for GroupSnapshot
impl Unpin for GroupSnapshot
impl UnsafeUnpin for GroupSnapshot
impl UnwindSafe for GroupSnapshot
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