#[repr(u8)]pub enum GTFSRealtimeScheduleRelationshipUpdate {
Scheduled = 0,
Skipped = 1,
NoData = 2,
Unscheduled = 3,
}Expand description
The relation between the StopTimeEvents and the static schedule.
Variants§
Scheduled = 0
The vehicle is proceeding in accordance with its static schedule of stops, although not necessarily according to the times of the schedule. At least one of arrival and departure must be provided. If the schedule for this stop contains both arrival and departure times then so must this update. Frequency-based trips (GTFS frequencies.txt with exact_times = 0) should not have a SCHEDULED value and should use UNSCHEDULED instead.
Skipped = 1
The stop is skipped, i.e., the vehicle will not stop at this stop. Arrival and departure are optional.
NoData = 2
No StopTimeEvents are given for this stop. The main intention for this value is to give time predictions only for part of a trip, i.e., if the last update for a trip has a NO_DATA specifier, then StopTimeEvents for the rest of the stops in the trip are considered to be unspecified as well. Neither arrival nor departure should be supplied.
Unscheduled = 3
The vehicle is operating a trip defined in GTFS frequencies.txt with exact_times = 0. This value should not be used for trips that are not defined in GTFS frequencies.txt, or trips in GTFS frequencies.txt with exact_times = 1. Trips containing StopTimeUpdates with ScheduleRelationship=UNSCHEDULED must also set TripDescriptor.ScheduleRelationship=UNSCHEDULED. NOTE: This field is still experimental, and subject to change. It may be formally adopted in the future.
Trait Implementations§
Source§impl Clone for GTFSRealtimeScheduleRelationshipUpdate
impl Clone for GTFSRealtimeScheduleRelationshipUpdate
Source§fn clone(&self) -> GTFSRealtimeScheduleRelationshipUpdate
fn clone(&self) -> GTFSRealtimeScheduleRelationshipUpdate
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Default for GTFSRealtimeScheduleRelationshipUpdate
impl Default for GTFSRealtimeScheduleRelationshipUpdate
Source§fn default() -> GTFSRealtimeScheduleRelationshipUpdate
fn default() -> GTFSRealtimeScheduleRelationshipUpdate
Source§impl Ord for GTFSRealtimeScheduleRelationshipUpdate
impl Ord for GTFSRealtimeScheduleRelationshipUpdate
Source§fn cmp(&self, other: >FSRealtimeScheduleRelationshipUpdate) -> Ordering
fn cmp(&self, other: >FSRealtimeScheduleRelationshipUpdate) -> Ordering
1.21.0§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialEq for GTFSRealtimeScheduleRelationshipUpdate
impl PartialEq for GTFSRealtimeScheduleRelationshipUpdate
Source§fn eq(&self, other: >FSRealtimeScheduleRelationshipUpdate) -> bool
fn eq(&self, other: >FSRealtimeScheduleRelationshipUpdate) -> bool
self and other values to be equal, and is used by ==.Source§impl PartialOrd for GTFSRealtimeScheduleRelationshipUpdate
impl PartialOrd for GTFSRealtimeScheduleRelationshipUpdate
impl Copy for GTFSRealtimeScheduleRelationshipUpdate
impl Eq for GTFSRealtimeScheduleRelationshipUpdate
impl StructuralPartialEq for GTFSRealtimeScheduleRelationshipUpdate
Auto Trait Implementations§
impl Freeze for GTFSRealtimeScheduleRelationshipUpdate
impl RefUnwindSafe for GTFSRealtimeScheduleRelationshipUpdate
impl Send for GTFSRealtimeScheduleRelationshipUpdate
impl Sync for GTFSRealtimeScheduleRelationshipUpdate
impl Unpin for GTFSRealtimeScheduleRelationshipUpdate
impl UnwindSafe for GTFSRealtimeScheduleRelationshipUpdate
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().