pub enum Mode {
Show 20 variants
Walk,
Bike,
Rental,
Car,
CarParking,
Transit,
Tram,
Subway,
Ferry,
Airplane,
Metro,
Bus,
Coach,
Rail,
HighspeedRail,
LongDistance,
NightRail,
RegionalFastRail,
RegionalRail,
Other,
}
Expand description
Mode : # Street modes - WALK
- BIKE
- RENTAL
Experimental. Expect unannounced breaking changes (without version bumps). - CAR
- CAR_PARKING
# Transit modes - TRANSIT
: translates to RAIL,SUBWAY,TRAM,BUS,FERRY,AIRPLANE,COACH
- TRAM
: trams - SUBWAY
: subway trains - FERRY
: ferries - AIRPLANE
: airline flights - BUS
: short distance buses (does not include COACH
) - COACH
: long distance buses (does not include BUS
) - RAIL
: translates to HIGHSPEED_RAIL,LONG_DISTANCE_RAIL,NIGHT_RAIL,REGIONAL_RAIL,REGIONAL_FAST_RAIL
- METRO
: metro trains - HIGHSPEED_RAIL
: long distance high speed trains (e.g. TGV) - LONG_DISTANCE
: long distance inter city trains - NIGHT_RAIL
: long distance night trains - REGIONAL_FAST_RAIL
: regional express routes that skip low traffic stops to be faster - REGIONAL_RAIL
: regional train
§Street modes - WALK
- BIKE
- RENTAL
Experimental. Expect unannounced breaking changes (without version bumps). - CAR
- CAR_PARKING
# Transit modes - TRANSIT
: translates to RAIL,SUBWAY,TRAM,BUS,FERRY,AIRPLANE,COACH
- TRAM
: trams - SUBWAY
: subway trains - FERRY
: ferries - AIRPLANE
: airline flights - BUS
: short distance buses (does not include COACH
) - COACH
: long distance buses (does not include BUS
) - RAIL
: translates to HIGHSPEED_RAIL,LONG_DISTANCE_RAIL,NIGHT_RAIL,REGIONAL_RAIL,REGIONAL_FAST_RAIL
- METRO
: metro trains - HIGHSPEED_RAIL
: long distance high speed trains (e.g. TGV) - LONG_DISTANCE
: long distance inter city trains - NIGHT_RAIL
: long distance night trains - REGIONAL_FAST_RAIL
: regional express routes that skip low traffic stops to be faster - REGIONAL_RAIL
: regional train
Variants§
Walk
Bike
Rental
Car
CarParking
Transit
Tram
Subway
Ferry
Airplane
Metro
Bus
Coach
Rail
HighspeedRail
LongDistance
NightRail
RegionalFastRail
RegionalRail
Other
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Mode
impl<'de> Deserialize<'de> for Mode
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>,
Source§impl Ord for Mode
impl Ord for Mode
Source§impl PartialOrd for Mode
impl PartialOrd for Mode
impl Copy for Mode
impl Eq for Mode
impl StructuralPartialEq for Mode
Auto Trait Implementations§
impl Freeze for Mode
impl RefUnwindSafe for Mode
impl Send for Mode
impl Sync for Mode
impl Unpin for Mode
impl UnwindSafe for Mode
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string
, but without panic on OOM.