#[repr(i32)]pub enum FlightPriority {
Low = 0,
Medium = 1,
High = 2,
Emergency = 3,
}Expand description
Flight Priority Enum
Variants§
Implementations§
§impl FlightPriority
impl FlightPriority
§impl FlightPriority
impl FlightPriority
pub 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.
pub fn from_str_name(value: &str) -> Option<FlightPriority>
pub fn from_str_name(value: &str) -> Option<FlightPriority>
Creates an enum from field names used in the ProtoBuf definition.
Trait Implementations§
§impl Clone for FlightPriority
impl Clone for FlightPriority
§fn clone(&self) -> FlightPriority
fn clone(&self) -> FlightPriority
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read more§impl Debug for FlightPriority
impl Debug for FlightPriority
§impl Default for FlightPriority
impl Default for FlightPriority
§fn default() -> FlightPriority
fn default() -> FlightPriority
Returns the “default value” for a type. Read more
§impl FromPrimitive for FlightPriority
impl FromPrimitive for FlightPriority
§fn from_i64(n: i64) -> Option<FlightPriority>
fn from_i64(n: i64) -> Option<FlightPriority>
Converts an
i64 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.§fn from_u64(n: u64) -> Option<FlightPriority>
fn from_u64(n: u64) -> Option<FlightPriority>
Converts an
u64 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.source§fn from_isize(n: isize) -> Option<Self>
fn from_isize(n: isize) -> Option<Self>
Converts an
isize to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.source§fn from_i8(n: i8) -> Option<Self>
fn from_i8(n: i8) -> Option<Self>
Converts an
i8 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.source§fn from_i16(n: i16) -> Option<Self>
fn from_i16(n: i16) -> Option<Self>
Converts an
i16 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.source§fn from_i32(n: i32) -> Option<Self>
fn from_i32(n: i32) -> Option<Self>
Converts an
i32 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.source§fn from_i128(n: i128) -> Option<Self>
fn from_i128(n: i128) -> Option<Self>
Converts an
i128 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned. Read moresource§fn from_usize(n: usize) -> Option<Self>
fn from_usize(n: usize) -> Option<Self>
Converts a
usize to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.source§fn from_u8(n: u8) -> Option<Self>
fn from_u8(n: u8) -> Option<Self>
Converts an
u8 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.source§fn from_u16(n: u16) -> Option<Self>
fn from_u16(n: u16) -> Option<Self>
Converts an
u16 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.source§fn from_u32(n: u32) -> Option<Self>
fn from_u32(n: u32) -> Option<Self>
Converts an
u32 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.source§fn from_u128(n: u128) -> Option<Self>
fn from_u128(n: u128) -> Option<Self>
Converts an
u128 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned. Read more§impl Hash for FlightPriority
impl Hash for FlightPriority
§impl Ord for FlightPriority
impl Ord for FlightPriority
§impl PartialEq for FlightPriority
impl PartialEq for FlightPriority
§fn eq(&self, other: &FlightPriority) -> bool
fn eq(&self, other: &FlightPriority) -> bool
This method tests for
self and other values to be equal, and is used
by ==.§impl PartialOrd for FlightPriority
impl PartialOrd for FlightPriority
§fn partial_cmp(&self, other: &FlightPriority) -> Option<Ordering>
fn partial_cmp(&self, other: &FlightPriority) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read more§impl TryFrom<i32> for FlightPriority
impl TryFrom<i32> for FlightPriority
§type Error = DecodeError
type Error = DecodeError
The type returned in the event of a conversion error.
§fn try_from(value: i32) -> Result<FlightPriority, DecodeError>
fn try_from(value: i32) -> Result<FlightPriority, DecodeError>
Performs the conversion.
impl Copy for FlightPriority
impl Eq for FlightPriority
impl StructuralEq for FlightPriority
impl StructuralPartialEq for FlightPriority
Auto Trait Implementations§
impl RefUnwindSafe for FlightPriority
impl Send for FlightPriority
impl Sync for FlightPriority
impl Unpin for FlightPriority
impl UnwindSafe for FlightPriority
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
Mutably borrows from an owned value. Read more
§impl<T> CallHasher for T
impl<T> CallHasher for 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
Compare self to
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
Checks if this value is equivalent to the given key. Read more
§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
Compare self to
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>
Wrap the input message
T in a tonic::Request