#[repr(i32)]pub enum EngagementState {
Unspecified = 0,
Idle = 1,
Tracking = 2,
SolutionValid = 3,
Engaging = 4,
Assessing = 5,
Complete = 6,
}Expand description
Current engagement state
Variants§
Unspecified = 0
Idle = 1
No engagement
Tracking = 2
Tracking target
SolutionValid = 3
Firing solution computed
Engaging = 4
Actively engaging
Assessing = 5
Battle damage assessment
Complete = 6
Engagement complete
Implementations§
Source§impl EngagementState
impl EngagementState
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 EngagementState
impl Clone for EngagementState
Source§fn clone(&self) -> EngagementState
fn clone(&self) -> EngagementState
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 EngagementState
impl Debug for EngagementState
Source§impl Default for EngagementState
impl Default for EngagementState
Source§fn default() -> EngagementState
fn default() -> EngagementState
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for EngagementState
impl<'de> Deserialize<'de> for EngagementState
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<EngagementState> for i32
impl From<EngagementState> for i32
Source§fn from(value: EngagementState) -> i32
fn from(value: EngagementState) -> i32
Converts to this type from the input type.
Source§impl Hash for EngagementState
impl Hash for EngagementState
Source§impl Ord for EngagementState
impl Ord for EngagementState
Source§fn cmp(&self, other: &EngagementState) -> Ordering
fn cmp(&self, other: &EngagementState) -> 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 EngagementState
impl PartialEq for EngagementState
Source§fn eq(&self, other: &EngagementState) -> bool
fn eq(&self, other: &EngagementState) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for EngagementState
impl PartialOrd for EngagementState
Source§impl Serialize for EngagementState
impl Serialize for EngagementState
Source§impl TryFrom<i32> for EngagementState
impl TryFrom<i32> for EngagementState
Source§type Error = UnknownEnumValue
type Error = UnknownEnumValue
The type returned in the event of a conversion error.
Source§fn try_from(value: i32) -> Result<EngagementState, UnknownEnumValue>
fn try_from(value: i32) -> Result<EngagementState, UnknownEnumValue>
Performs the conversion.
impl Copy for EngagementState
impl Eq for EngagementState
impl StructuralPartialEq for EngagementState
Auto Trait Implementations§
impl Freeze for EngagementState
impl RefUnwindSafe for EngagementState
impl Send for EngagementState
impl Sync for EngagementState
impl Unpin for EngagementState
impl UnsafeUnpin for EngagementState
impl UnwindSafe for EngagementState
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