#[non_exhaustive]pub enum EtaError {
NotAnElevator(EntityId),
NotAStop(EntityId),
StopNotQueued {
elevator: EntityId,
stop: EntityId,
},
ServiceModeExcluded(EntityId),
StopVanished(EntityId),
NoCarAssigned(EntityId),
}Expand description
Failure modes for Simulation::eta queries.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
NotAnElevator(EntityId)
The entity is not an elevator.
NotAStop(EntityId)
The entity is not a stop.
StopNotQueued
The stop is not in the elevator’s destination queue.
ServiceModeExcluded(EntityId)
The elevator’s service mode excludes it from dispatch-based queries.
StopVanished(EntityId)
A stop in the route vanished during calculation.
NoCarAssigned(EntityId)
No car has been assigned to serve the hall call at this stop.
Trait Implementations§
Source§impl Error for EtaError
impl Error for EtaError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
impl Copy for EtaError
impl Eq for EtaError
impl StructuralPartialEq for EtaError
Auto Trait Implementations§
impl Freeze for EtaError
impl RefUnwindSafe for EtaError
impl Send for EtaError
impl Sync for EtaError
impl Unpin for EtaError
impl UnsafeUnpin for EtaError
impl UnwindSafe for EtaError
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
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
Compare self to
key and return true if they are equal.