#[repr(u8)]pub enum GTFSRealtimeCause {
UnknownCause = 1,
OtherCause = 2,
TechnicalProblem = 3,
Strike = 4,
Demonstration = 5,
Accident = 6,
HOLIHolidayDAY = 7,
Weather = 8,
Maintenance = 9,
Construction = 10,
PoliceActivity = 11,
MedicalEmergency = 12,
}Expand description
Cause of this alert. If cause_detail is included, then Cause must also be included.
Variants§
UnknownCause = 1
Unknown cause
OtherCause = 2
Not machine-representable.
TechnicalProblem = 3
Technical problem.
Strike = 4
Public transit agency employees stopped working.
Demonstration = 5
People are blocking the streets.
Accident = 6
Accident.
HOLIHolidayDAY = 7
Holiday.
Weather = 8
Weather.
Maintenance = 9
Maintenance.
Construction = 10
Construction.
PoliceActivity = 11
Police activity.
MedicalEmergency = 12
Medical emergency.
Trait Implementations§
Source§impl BitCast for GTFSRealtimeCause
impl BitCast for GTFSRealtimeCause
Source§impl Clone for GTFSRealtimeCause
impl Clone for GTFSRealtimeCause
Source§fn clone(&self) -> GTFSRealtimeCause
fn clone(&self) -> GTFSRealtimeCause
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for GTFSRealtimeCause
impl Debug for GTFSRealtimeCause
Source§impl Default for GTFSRealtimeCause
impl Default for GTFSRealtimeCause
Source§fn default() -> GTFSRealtimeCause
fn default() -> GTFSRealtimeCause
Returns the “default value” for a type. Read more
Source§impl Hash for GTFSRealtimeCause
impl Hash for GTFSRealtimeCause
Source§impl Ord for GTFSRealtimeCause
impl Ord for GTFSRealtimeCause
Source§impl PartialEq for GTFSRealtimeCause
impl PartialEq for GTFSRealtimeCause
Source§impl PartialOrd for GTFSRealtimeCause
impl PartialOrd for GTFSRealtimeCause
impl Copy for GTFSRealtimeCause
impl Eq for GTFSRealtimeCause
impl StructuralPartialEq for GTFSRealtimeCause
Auto Trait Implementations§
impl Freeze for GTFSRealtimeCause
impl RefUnwindSafe for GTFSRealtimeCause
impl Send for GTFSRealtimeCause
impl Sync for GTFSRealtimeCause
impl Unpin for GTFSRealtimeCause
impl UnwindSafe for GTFSRealtimeCause
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
Mutably borrows from an owned value. Read more
§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)
🔬This is a nightly-only experimental API. (
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>
Converts
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>
Converts
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>
Read this value from the supplied reader. Same as
ReadEndian::read_from_little_endian().