#[repr(i32)]pub enum Maneuver {
Show 21 variants
Unspecified = 0,
TurnSlightLeft = 1,
TurnSharpLeft = 2,
UturnLeft = 3,
TurnLeft = 4,
TurnSlightRight = 5,
TurnSharpRight = 6,
UturnRight = 7,
TurnRight = 8,
Straight = 9,
RampLeft = 10,
RampRight = 11,
Merge = 12,
ForkLeft = 13,
ForkRight = 14,
Ferry = 15,
FerryTrain = 16,
RoundaboutLeft = 17,
RoundaboutRight = 18,
Depart = 19,
NameChange = 20,
}
Expand description
A set of values that specify the navigation action to take for the current step (for example, turn left, merge, or straight).
Variants§
Unspecified = 0
Not used.
TurnSlightLeft = 1
Turn slightly to the left.
TurnSharpLeft = 2
Turn sharply to the left.
UturnLeft = 3
Make a left u-turn.
TurnLeft = 4
Turn left.
TurnSlightRight = 5
Turn slightly to the right.
TurnSharpRight = 6
Turn sharply to the right.
UturnRight = 7
Make a right u-turn.
TurnRight = 8
Turn right.
Straight = 9
Go straight.
RampLeft = 10
Take the left ramp.
RampRight = 11
Take the right ramp.
Merge = 12
Merge into traffic.
ForkLeft = 13
Take the left fork.
ForkRight = 14
Take the right fork.
Ferry = 15
Take the ferry.
FerryTrain = 16
Take the train leading onto the ferry.
RoundaboutLeft = 17
Turn left at the roundabout.
RoundaboutRight = 18
Turn right at the roundabout.
Depart = 19
Initial maneuver.
NameChange = 20
Used to indicate a street name change.
Implementations§
source§impl Maneuver
impl Maneuver
sourcepub fn as_str_name(&self) -> &'static str
pub fn as_str_name(&self) -> &'static str
String value of the enum field names used in the ProtoBuf definition.
The values are not transformed in any way and thus are considered stable (if the ProtoBuf definition does not change) and safe for programmatic use.
sourcepub fn from_str_name(value: &str) -> Option<Self>
pub fn from_str_name(value: &str) -> Option<Self>
Creates an enum from field names used in the ProtoBuf definition.
Trait Implementations§
source§impl Ord for Maneuver
impl Ord for Maneuver
source§impl PartialEq for Maneuver
impl PartialEq for Maneuver
source§impl PartialOrd for Maneuver
impl PartialOrd for Maneuver
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read moresource§impl TryFrom<i32> for Maneuver
impl TryFrom<i32> for Maneuver
§type Error = UnknownEnumValue
type Error = UnknownEnumValue
impl Copy for Maneuver
impl Eq for Maneuver
impl StructuralPartialEq for Maneuver
Auto Trait Implementations§
impl Freeze for Maneuver
impl RefUnwindSafe for Maneuver
impl Send for Maneuver
impl Sync for Maneuver
impl Unpin for Maneuver
impl UnwindSafe for Maneuver
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
§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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request