Enum gapi_grpc::google::maps::routes::v1::FallbackReason[][src]

#[repr(i32)]pub enum FallbackReason {
    Unspecified,
    ServerError,
    LatencyExceeded,
}

Reasons for using fallback response.

Variants

Unspecified

No fallback reason specified.

ServerError

A server error happened while calculating routes with your preferred routing mode, but we were able to return a result calculated by an alternative mode.

LatencyExceeded

We were not able to finish the calculation with your preferred routing mode on time, but we were able to return a result calculated by an alternative mode.

Implementations

impl FallbackReason[src]

pub fn is_valid(value: i32) -> bool[src]

Returns true if value is a variant of FallbackReason.

pub fn from_i32(value: i32) -> Option<FallbackReason>[src]

Converts an i32 to a FallbackReason, or None if value is not a valid variant.

Trait Implementations

impl Clone for FallbackReason[src]

impl Copy for FallbackReason[src]

impl Debug for FallbackReason[src]

impl Default for FallbackReason[src]

impl Eq for FallbackReason[src]

impl From<FallbackReason> for i32[src]

impl Hash for FallbackReason[src]

impl Ord for FallbackReason[src]

impl PartialEq<FallbackReason> for FallbackReason[src]

impl PartialOrd<FallbackReason> for FallbackReason[src]

impl StructuralEq for FallbackReason[src]

impl StructuralPartialEq for FallbackReason[src]

Auto Trait Implementations

impl RefUnwindSafe for FallbackReason

impl Send for FallbackReason

impl Sync for FallbackReason

impl Unpin for FallbackReason

impl UnwindSafe for FallbackReason

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> IntoRequest<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 
[src]

impl<T> WithSubscriber for T[src]