Struct libits_client::reception::exchange::mobile_perceived_object::MobilePerceivedObject
source · [−]pub struct MobilePerceivedObject {
pub perceived_object: PerceivedObject,
pub mobile_id: u32,
pub reference_position: ReferencePosition,
pub speed: u16,
pub heading: u16,
}Fields
perceived_object: PerceivedObjectmobile_id: u32reference_position: ReferencePositionspeed: u16heading: u16Trait Implementations
sourceimpl Clone for MobilePerceivedObject
impl Clone for MobilePerceivedObject
sourcefn clone(&self) -> MobilePerceivedObject
fn clone(&self) -> MobilePerceivedObject
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for MobilePerceivedObject
impl Debug for MobilePerceivedObject
sourceimpl<'de> Deserialize<'de> for MobilePerceivedObject
impl<'de> Deserialize<'de> for MobilePerceivedObject
sourcefn 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
sourceimpl Hash for MobilePerceivedObject
impl Hash for MobilePerceivedObject
sourceimpl Mobile for MobilePerceivedObject
impl Mobile for MobilePerceivedObject
fn mobile_id(&self) -> u32
fn position(&self) -> &ReferencePosition
fn speed(&self) -> Option<u16>
fn heading(&self) -> Option<u16>
fn stopped(&self) -> bool
fn heading_in_degrees(&self) -> Option<f64>
fn speed_in_meter_per_second(&self) -> Option<f64>
fn speed_in_kilometer_per_hour(&self) -> Option<f64>
sourceimpl Serialize for MobilePerceivedObject
impl Serialize for MobilePerceivedObject
Auto Trait Implementations
impl RefUnwindSafe for MobilePerceivedObject
impl Send for MobilePerceivedObject
impl Sync for MobilePerceivedObject
impl Unpin for MobilePerceivedObject
impl UnwindSafe for MobilePerceivedObject
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more