Enum deutsche_bahn_delay_reasons::Grund[][src]

#[non_exhaustive]
pub enum Grund {
Show 13 variants FahrtFaelltAus, FaehrtHeuteNurBis(String), VerzoegerungenImBetriebsablauf, Gleiswechsel, FahrtFaelltAusMitErsatzfahrt(String), TechnischeStoerungenAmZug, VerspaetungEinesVorausfahrendenZuges, VerspaeteteBereitstellungDesZuges, Bauarbeiten, WitterungsbedingteStoerung, WeichenStoerung, AenderungImFahrtverlauf, Unwetter,
}
Expand description

Some of the possible reasons a Deutsche Bahn train could be delayed.

Variants (Non-exhaustive)

This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
FahrtFaelltAus

Trip cancelled.

FaehrtHeuteNurBis(String)

Trip only reaches a certain stop today.

VerzoegerungenImBetriebsablauf

Delays in operations.

Gleiswechsel

Change of track.

FahrtFaelltAusMitErsatzfahrt(String)

Trip cancelled, there is replacement trip.

TechnischeStoerungenAmZug

Technical difficulties with the train.

VerspaetungEinesVorausfahrendenZuges

Delay of a previous train.

VerspaeteteBereitstellungDesZuges

Delayed allocation of the train.

Bauarbeiten

Construction work.

WitterungsbedingteStoerung

Weather-related difficulties.

WeichenStoerung

Difficulties with a switch.

AenderungImFahrtverlauf

Changes in the journey course.

Unwetter

Storm or bad weather.

Implementations

Trait Implementations

Formats the value using the given formatter. Read more

Formats the value using the given formatter. Read more

Implement a standard distribution for our central delay code enum. With this trait, rand::random() can be used to get a random enum variant. All members of enum variants must be default-constructible for that to work.

Generate a random value of T, using rng as the source of randomness.

Create an iterator that generates random values of T, using rng as the source of randomness. Read more

Create a distribution of values of ‘S’ by mapping the output of Self through the closure F Read more

The lower-level source of this error, if any. Read more

🔬 This is a nightly-only experimental API. (backtrace)

Returns a stack backtrace, if available, of where this error occurred. Read more

👎 Deprecated since 1.42.0:

use the Display impl or to_string()

👎 Deprecated since 1.33.0:

replaced by Error::source, which can support downcasting

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

Converts the given value to a String. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.