Enum gtfs_rt::vehicle_position::OccupancyStatus
source · pub enum OccupancyStatus {
Empty,
ManySeatsAvailable,
FewSeatsAvailable,
StandingRoomOnly,
CrushedStandingRoomOnly,
Full,
NotAcceptingPassengers,
}
Expand description
The degree of passenger occupancy of the vehicle. This field is still experimental, and subject to change. It may be formally adopted in the future.
Variants§
Empty
The vehicle is considered empty by most measures, and has few or no passengers onboard, but is still accepting passengers.
ManySeatsAvailable
The vehicle has a relatively large percentage of seats available. What percentage of free seats out of the total seats available is to be considered large enough to fall into this category is determined at the discretion of the producer.
FewSeatsAvailable
The vehicle has a relatively small percentage of seats available. What percentage of free seats out of the total seats available is to be considered small enough to fall into this category is determined at the discretion of the feed producer.
StandingRoomOnly
The vehicle can currently accommodate only standing passengers.
CrushedStandingRoomOnly
The vehicle can currently accommodate only standing passengers and has limited space for them.
Full
The vehicle is considered full by most measures, but may still be allowing passengers to board.
NotAcceptingPassengers
The vehicle is not accepting additional passengers.
Implementations§
Trait Implementations§
source§impl Clone for OccupancyStatus
impl Clone for OccupancyStatus
source§fn clone(&self) -> OccupancyStatus
fn clone(&self) -> OccupancyStatus
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for OccupancyStatus
impl Debug for OccupancyStatus
source§impl Default for OccupancyStatus
impl Default for OccupancyStatus
source§fn default() -> OccupancyStatus
fn default() -> OccupancyStatus
source§impl From<OccupancyStatus> for i32
impl From<OccupancyStatus> for i32
source§fn from(value: OccupancyStatus) -> i32
fn from(value: OccupancyStatus) -> i32
source§impl Hash for OccupancyStatus
impl Hash for OccupancyStatus
source§impl Ord for OccupancyStatus
impl Ord for OccupancyStatus
source§fn cmp(&self, other: &OccupancyStatus) -> Ordering
fn cmp(&self, other: &OccupancyStatus) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
source§impl PartialEq<OccupancyStatus> for OccupancyStatus
impl PartialEq<OccupancyStatus> for OccupancyStatus
source§fn eq(&self, other: &OccupancyStatus) -> bool
fn eq(&self, other: &OccupancyStatus) -> bool
source§impl PartialOrd<OccupancyStatus> for OccupancyStatus
impl PartialOrd<OccupancyStatus> for OccupancyStatus
source§fn partial_cmp(&self, other: &OccupancyStatus) -> Option<Ordering>
fn partial_cmp(&self, other: &OccupancyStatus) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read more