pub enum Cause {
Show 43 variants
Accident,
Amtrak,
AnEarlierMechanicalProblem,
AnEarlierSignalProblem,
AutosImpedingService,
CoastGuardRestriction,
Congestion,
Construction,
CrossingMalfunction,
Demonstration,
DisabledBus,
DisabledTrain,
DrawbridgeBeingRaised,
ElectricalWork,
Fire,
Fog,
FreightTrainInterference,
HazmatCondition,
HeavyRidership,
HighWinds,
Holiday,
Hurricane,
IceInHarbor,
Maintenance,
MechanicalProblem,
MedicalEmergency,
Parade,
PoliceAction,
PowerProblem,
SevereWeather,
SignalProblem,
SlipperyRail,
Snow,
SpecialEvent,
SpeedRestriction,
SwitchProblem,
TieReplacement,
TrackProblem,
TrackWork,
Traffic,
UnrulyPassenger,
UnknownCause,
Weather,
}Expand description
What is causing an alert.
Variants§
Accident
A general accident.
Amtrak
Amtrak.
AnEarlierMechanicalProblem
An earlier mechanical problem.
AnEarlierSignalProblem
An earlier signal problem.
AutosImpedingService
Automobiles impeding service.
CoastGuardRestriction
Coast guard restriction.
Congestion
Congestion.
Construction
Construction.
CrossingMalfunction
Crossing malfunction.
Demonstration
Demonstration.
DisabledBus
Disabled bus.
DisabledTrain
Disabled train.
DrawbridgeBeingRaised
Drawbridge being raised.
ElectricalWork
Electrical work.
Fire
Fire.
Fog
Fog.
FreightTrainInterference
Freight train interference.
HazmatCondition
Hazmat condition.
HeavyRidership
Heavy ridership.
HighWinds
High winds.
Holiday
Holiday.
Hurricane
Hurricane.
IceInHarbor
Ice in harbor.
Maintenance
Maintenance.
MechanicalProblem
Mechanical problem.
MedicalEmergency
Medical emergency.
Parade
Parade.
PoliceAction
Police action.
PowerProblem
Power problem.
SevereWeather
Severe weather.
SignalProblem
Signal problem.
SlipperyRail
Slippery rail.
Snow
Snow.
SpecialEvent
Special event.
SpeedRestriction
Speed restriction.
SwitchProblem
Switch problem.
TieReplacement
Tie replacement.
TrackProblem
Track problem.
TrackWork
Track work.
Traffic
Traffic.
UnrulyPassenger
Unruly passenger.
UnknownCause
Unknown cause.
Weather
Weather.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Cause
impl<'de> Deserialize<'de> for Cause
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Copy for Cause
impl StructuralPartialEq for Cause
Auto Trait Implementations§
impl Freeze for Cause
impl RefUnwindSafe for Cause
impl Send for Cause
impl Sync for Cause
impl Unpin for Cause
impl UnwindSafe for Cause
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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 more