pub struct GTFSRealtimeStopTimeEvent {
pub delay: Option<i32>,
pub time: Option<i64>,
pub uncertainty: Option<i32>,
}Expand description
Timing information for a single predicted event (either arrival or departure).
Timing consists of delay and/or estimated time, and uncertainty.
- delay should be used when the prediction is given relative to some existing schedule in GTFS.
- time should be given whether there is a predicted schedule or not. If both time and delay are specified, time will take precedence (although normally, time, if given for a scheduled trip, should be equal to scheduled time in GTFS + delay).
Uncertainty applies equally to both time and delay. The uncertainty roughly specifies the expected error in true delay (but note, we don’t yet define its precise statistical meaning). It’s possible for the uncertainty to be 0, for example for trains that are driven under computer timing control.
Fields§
§delay: Option<i32>Delay (in seconds) can be positive (meaning that the vehicle is late) or negative (meaning that the vehicle is ahead of schedule). Delay of 0 means that the vehicle is exactly on time.
time: Option<i64>Event as absolute time. In Unix time (i.e., number of seconds since January 1st 1970 00:00:00 UTC).
uncertainty: Option<i32>If uncertainty is omitted, it is interpreted as unknown. If the prediction is unknown or too uncertain, the delay (or time) field should be empty. In such case, the uncertainty field is ignored. To specify a completely certain prediction, set its uncertainty to 0.
Trait Implementations§
Source§impl Clone for GTFSRealtimeStopTimeEvent
impl Clone for GTFSRealtimeStopTimeEvent
Source§fn clone(&self) -> GTFSRealtimeStopTimeEvent
fn clone(&self) -> GTFSRealtimeStopTimeEvent
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for GTFSRealtimeStopTimeEvent
impl Debug for GTFSRealtimeStopTimeEvent
Source§impl Default for GTFSRealtimeStopTimeEvent
impl Default for GTFSRealtimeStopTimeEvent
Source§fn default() -> GTFSRealtimeStopTimeEvent
fn default() -> GTFSRealtimeStopTimeEvent
Source§impl ProtoRead for GTFSRealtimeStopTimeEvent
Read in the contents of the blob header
impl ProtoRead for GTFSRealtimeStopTimeEvent
Read in the contents of the blob header
impl StructuralPartialEq for GTFSRealtimeStopTimeEvent
Auto Trait Implementations§
impl Freeze for GTFSRealtimeStopTimeEvent
impl RefUnwindSafe for GTFSRealtimeStopTimeEvent
impl Send for GTFSRealtimeStopTimeEvent
impl Sync for GTFSRealtimeStopTimeEvent
impl Unpin for GTFSRealtimeStopTimeEvent
impl UnwindSafe for GTFSRealtimeStopTimeEvent
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<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().