[][src]Struct wasmdome_mech_sdk::RadarPing

pub struct RadarPing {
    pub id: String,
    pub foe: bool,
    pub location: Point,
    pub distance: usize,
}

A single result from a radar scan. When a mech queries for the last radar scan and one is available, those results will be a vector of these radar pings

Fields

id: String

A unique identifier for this target. This is an opaque string and you should assign no internal meaning to it other than to distinguish one target from another

foe: bool

Indicates if the discovered target is a friend or foe

location: Point

The location from which the radar response originated

distance: usize

A rounded, whole number indicating the distance to the discovered target

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.