pub struct FiringSolution {
pub valid: bool,
pub quality: f32,
pub hit_probability: f32,
pub lead_angle_deg: f32,
pub elevation_deg: f32,
pub time_to_impact_s: f32,
pub computed_at: Option<Timestamp>,
pub valid_until: Option<Timestamp>,
}Expand description
Firing solution status
Fields§
§valid: boolSolution valid
quality: f32Solution quality (0.0 - 1.0)
hit_probability: f32Predicted hit probability (0.0 - 1.0)
lead_angle_deg: f32Lead angle computed (degrees)
elevation_deg: f32Elevation adjustment (degrees)
time_to_impact_s: f32Time to impact (seconds)
computed_at: Option<Timestamp>Solution computed at
valid_until: Option<Timestamp>Solution stale after (requires recompute)
Trait Implementations§
Source§impl Clone for FiringSolution
impl Clone for FiringSolution
Source§fn clone(&self) -> FiringSolution
fn clone(&self) -> FiringSolution
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 FiringSolution
impl Debug for FiringSolution
Source§impl Default for FiringSolution
impl Default for FiringSolution
Source§impl<'de> Deserialize<'de> for FiringSolution
impl<'de> Deserialize<'de> for FiringSolution
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 Message for FiringSolution
impl Message for FiringSolution
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
Source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
Encodes the message to a buffer. Read more
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Encodes the message to a newly allocated buffer.
Source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
Encodes the message with a length-delimiter to a buffer. Read more
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Encodes the message with a length-delimiter to a newly allocated buffer.
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Decodes an instance of the message from a buffer. Read more
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Decodes a length-delimited instance of the message from the buffer.
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
Decodes an instance of the message from a buffer, and merges it into
self. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
Decodes a length-delimited instance of the message from buffer, and
merges it into
self.Source§impl PartialEq for FiringSolution
impl PartialEq for FiringSolution
Source§fn eq(&self, other: &FiringSolution) -> bool
fn eq(&self, other: &FiringSolution) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for FiringSolution
impl Serialize for FiringSolution
impl Copy for FiringSolution
impl StructuralPartialEq for FiringSolution
Auto Trait Implementations§
impl Freeze for FiringSolution
impl RefUnwindSafe for FiringSolution
impl Send for FiringSolution
impl Sync for FiringSolution
impl Unpin for FiringSolution
impl UnsafeUnpin for FiringSolution
impl UnwindSafe for FiringSolution
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