Struct gpsd_proto::Tpv

source ·
pub struct Tpv {
Show 22 fields pub device: Option<String>, pub status: Option<i32>, pub mode: Mode, pub time: Option<String>, pub ept: Option<f32>, pub leapseconds: Option<i32>, pub alt_msl: Option<f32>, pub alt_hae: Option<f32>, pub geoid_sep: Option<f32>, pub lat: Option<f64>, pub lon: Option<f64>, pub alt: Option<f32>, pub epx: Option<f32>, pub epy: Option<f32>, pub epv: Option<f32>, pub track: Option<f32>, pub speed: Option<f32>, pub climb: Option<f32>, pub epd: Option<f32>, pub eps: Option<f32>, pub epc: Option<f32>, pub eph: Option<f32>,
}
Expand description

GPS position.

A TPV object is a time-position-velocity report. The “mode” field will be emitted before optional fields that may be absent when there is no fix. Error estimates will be emitted after the fix components they’re associated with. Others may be reported or not depending on the fix quality.

Fields§

§device: Option<String>

Name of the originating device.

§status: Option<i32>

GPS fix status.

§mode: Mode

NMEA mode, see Mode enum.

§time: Option<String>

Time/date stamp in ISO8601 format, UTC. May have a fractional part of up to .001sec precision. May be absent if mode is not 2 or 3.

§ept: Option<f32>

Estimated timestamp error (%f, seconds, 95% confidence). Present if time is present.

§leapseconds: Option<i32>§alt_msl: Option<f32>

MSL altitude in meters.

§alt_hae: Option<f32>

Altitude height above ellipsoid (elipsoid is unspecified, but probably WGS48)

§geoid_sep: Option<f32>

Geoid separation between whatever geoid the device uses and WGS84, in metres

§lat: Option<f64>

Latitude in degrees: +/- signifies North/South. Present when mode is 2 or 3.

§lon: Option<f64>

Longitude in degrees: +/- signifies East/West. Present when mode is 2 or 3.

§alt: Option<f32>

Altitude in meters. Present if mode is 3.

§epx: Option<f32>

Longitude error estimate in meters, 95% confidence. Present if mode is 2 or 3 and DOPs can be calculated from the satellite view.

§epy: Option<f32>

Latitude error estimate in meters, 95% confidence. Present if mode is 2 or 3 and DOPs can be calculated from the satellite view.

§epv: Option<f32>

Estimated vertical error in meters, 95% confidence. Present if mode is 3 and DOPs can be calculated from the satellite view.

§track: Option<f32>

Course over ground, degrees from true north.

§speed: Option<f32>

Speed over ground, meters per second.

§climb: Option<f32>

Climb (positive) or sink (negative) rate, meters per second.

§epd: Option<f32>

Direction error estimate in degrees, 95% confidence.

§eps: Option<f32>

Speed error estinmate in meters/sec, 95% confidence.

§epc: Option<f32>

Climb/sink error estimate in meters/sec, 95% confidence.

§eph: Option<f32>

Horizontal 2D position error in meters.

Trait Implementations§

source§

impl Clone for Tpv

source§

fn clone(&self) -> Tpv

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for Tpv

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<'de> Deserialize<'de> for Tpv

source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more

Auto Trait Implementations§

§

impl RefUnwindSafe for Tpv

§

impl Send for Tpv

§

impl Sync for Tpv

§

impl Unpin for Tpv

§

impl UnwindSafe for Tpv

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for Twhere T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

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

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<T> DeserializeOwned for Twhere T: for<'de> Deserialize<'de>,