#[repr(i32)]pub enum TrackState {
Unspecified = 0,
Tentative = 1,
Confirmed = 2,
Lost = 3,
Dropped = 4,
}Expand description
Track state
Variants§
Unspecified = 0
Tentative = 1
New track, not yet confirmed
Confirmed = 2
Track confirmed with multiple observations
Lost = 3
Track lost (no recent observations)
Dropped = 4
Track dropped (stale, no longer tracked)
Implementations§
Source§impl TrackState
impl TrackState
Source§impl TrackState
impl TrackState
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 Clone for TrackState
impl Clone for TrackState
Source§fn clone(&self) -> TrackState
fn clone(&self) -> TrackState
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TrackState
impl Debug for TrackState
Source§impl Default for TrackState
impl Default for TrackState
Source§fn default() -> TrackState
fn default() -> TrackState
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for TrackState
impl<'de> Deserialize<'de> for TrackState
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>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<TrackState> for i32
impl From<TrackState> for i32
Source§fn from(value: TrackState) -> i32
fn from(value: TrackState) -> i32
Converts to this type from the input type.
Source§impl Hash for TrackState
impl Hash for TrackState
Source§impl Ord for TrackState
impl Ord for TrackState
Source§fn cmp(&self, other: &TrackState) -> Ordering
fn cmp(&self, other: &TrackState) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for TrackState
impl PartialEq for TrackState
Source§fn eq(&self, other: &TrackState) -> bool
fn eq(&self, other: &TrackState) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for TrackState
impl PartialOrd for TrackState
Source§impl Serialize for TrackState
impl Serialize for TrackState
Source§impl TryFrom<i32> for TrackState
impl TryFrom<i32> for TrackState
Source§type Error = UnknownEnumValue
type Error = UnknownEnumValue
The type returned in the event of a conversion error.
Source§fn try_from(value: i32) -> Result<TrackState, UnknownEnumValue>
fn try_from(value: i32) -> Result<TrackState, UnknownEnumValue>
Performs the conversion.
impl Copy for TrackState
impl Eq for TrackState
impl StructuralPartialEq for TrackState
Auto Trait Implementations§
impl Freeze for TrackState
impl RefUnwindSafe for TrackState
impl Send for TrackState
impl Sync for TrackState
impl Unpin for TrackState
impl UnsafeUnpin for TrackState
impl UnwindSafe for TrackState
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