#[repr(u8)]pub enum GTFSRealtimeOccupancyStatus {
Empty = 0,
ManySeatsAvailable = 1,
FewSeatsAvailable = 2,
StandingRoomOnly = 3,
CrushedStandingRoomOnly = 4,
Full = 5,
NotAcceptingPassengers = 6,
NoDataAvailable = 7,
NotBoardable = 8,
}Expand description
The state of passenger occupancy for the vehicle or carriage.
Individual producers may not publish all OccupancyStatus values. Therefore, consumers
must not assume that the OccupancyStatus values follow a linear scale.
Consumers should represent OccupancyStatus values as the state indicated
and intended by the producer. Likewise, producers must use OccupancyStatus values that
correspond to actual vehicle occupancy states.
For describing passenger occupancy levels on a linear scale, see occupancy_percentage.
This field is still experimental, and subject to change. It may be formally adopted in the future.
Variants§
Empty = 0
The vehicle or carriage is considered empty by most measures, and has few or no passengers onboard, but is still accepting passengers.
ManySeatsAvailable = 1
The vehicle or carriage has a large number of seats available. The amount of free seats out of the total seats available to be considered large enough to fall into this category is determined at the discretion of the producer.
FewSeatsAvailable = 2
The vehicle or carriage has a relatively small number of seats available. The amount of free seats out of the total seats available to be considered small enough to fall into this category is determined at the discretion of the feed producer.
StandingRoomOnly = 3
The vehicle or carriage can currently accommodate only standing passengers.
CrushedStandingRoomOnly = 4
The vehicle or carriage can currently accommodate only standing passengers and has limited space for them.
Full = 5
The vehicle or carriage is considered full by most measures, but may still be allowing passengers to board.
NotAcceptingPassengers = 6
The vehicle or carriage is not accepting passengers, but usually accepts passengers for boarding.
NoDataAvailable = 7
The vehicle or carriage doesn’t have any occupancy data available at that time.
NotBoardable = 8
The vehicle or carriage is not boardable and never accepts passengers. Useful for special vehicles or carriages (engine, maintenance carriage, etc.).
Trait Implementations§
Source§impl Clone for GTFSRealtimeOccupancyStatus
impl Clone for GTFSRealtimeOccupancyStatus
Source§fn clone(&self) -> GTFSRealtimeOccupancyStatus
fn clone(&self) -> GTFSRealtimeOccupancyStatus
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for GTFSRealtimeOccupancyStatus
impl Debug for GTFSRealtimeOccupancyStatus
Source§impl Default for GTFSRealtimeOccupancyStatus
impl Default for GTFSRealtimeOccupancyStatus
Source§fn default() -> GTFSRealtimeOccupancyStatus
fn default() -> GTFSRealtimeOccupancyStatus
Source§impl Hash for GTFSRealtimeOccupancyStatus
impl Hash for GTFSRealtimeOccupancyStatus
Source§impl Ord for GTFSRealtimeOccupancyStatus
impl Ord for GTFSRealtimeOccupancyStatus
Source§impl PartialOrd for GTFSRealtimeOccupancyStatus
impl PartialOrd for GTFSRealtimeOccupancyStatus
impl Copy for GTFSRealtimeOccupancyStatus
impl Eq for GTFSRealtimeOccupancyStatus
impl StructuralPartialEq for GTFSRealtimeOccupancyStatus
Auto Trait Implementations§
impl Freeze for GTFSRealtimeOccupancyStatus
impl RefUnwindSafe for GTFSRealtimeOccupancyStatus
impl Send for GTFSRealtimeOccupancyStatus
impl Sync for GTFSRealtimeOccupancyStatus
impl Unpin for GTFSRealtimeOccupancyStatus
impl UnwindSafe for GTFSRealtimeOccupancyStatus
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
clone_to_uninit)Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<R, P> ReadPrimitive<R> for P
impl<R, P> ReadPrimitive<R> for P
Source§fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
ReadEndian::read_from_little_endian().