pub struct NeighborRobot {
pub robot_id: Option<String>,
pub distance_m: Option<f64>,
pub bearing_deg: Option<f64>,
pub velocity_mps: Option<f64>,
pub heading_deg: Option<f64>,
pub last_comm: Option<DateTime<Utc>>,
pub comm_latency_ms: Option<f64>,
pub collision_risk: Option<bool>,
}Expand description
Nearby robot information.
Fields§
§robot_id: Option<String>Robot ID
distance_m: Option<f64>Distance (m)
bearing_deg: Option<f64>Bearing (degrees)
velocity_mps: Option<f64>Velocity (m/s)
heading_deg: Option<f64>Heading (degrees)
last_comm: Option<DateTime<Utc>>Last communication time
comm_latency_ms: Option<f64>Communication latency (ms)
collision_risk: Option<bool>Whether potential collision
Implementations§
Trait Implementations§
Source§impl Clone for NeighborRobot
impl Clone for NeighborRobot
Source§fn clone(&self) -> NeighborRobot
fn clone(&self) -> NeighborRobot
Returns a duplicate 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 moreSource§impl Debug for NeighborRobot
impl Debug for NeighborRobot
Source§impl Default for NeighborRobot
impl Default for NeighborRobot
Source§fn default() -> NeighborRobot
fn default() -> NeighborRobot
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for NeighborRobot
impl<'de> Deserialize<'de> for NeighborRobot
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 Serialize for NeighborRobot
impl Serialize for NeighborRobot
Auto Trait Implementations§
impl Freeze for NeighborRobot
impl RefUnwindSafe for NeighborRobot
impl Send for NeighborRobot
impl Sync for NeighborRobot
impl Unpin for NeighborRobot
impl UnwindSafe for NeighborRobot
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