#[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 PartialOrd for Maneuver
impl PartialOrd for Maneuver
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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> 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