Struct nmea::sentences::RmcData

source ·
pub struct RmcData {
    pub fix_time: Option<NaiveTime>,
    pub fix_date: Option<NaiveDate>,
    pub status_of_fix: RmcStatusOfFix,
    pub lat: Option<f64>,
    pub lon: Option<f64>,
    pub speed_over_ground: Option<f32>,
    pub true_course: Option<f32>,
    pub magnetic_variation: Option<f32>,
    pub faa_mode: Option<FaaMode>,
    pub nav_status: Option<RmcNavigationStatus>,
}
Expand description

RMC - Recommended Minimum Navigation Information

https://gpsd.gitlab.io/gpsd/NMEA.html#_rmc_recommended_minimum_navigation_information

        1         2 3       4 5        6  7   8   9    10 11
        |         | |       | |        |  |   |   |    |  |
 $--RMC,hhmmss.ss,A,ddmm.mm,a,dddmm.mm,a,x.x,x.x,xxxx,x.x,a*hh<CR><LF>

NMEA 2.3:

        1         2 3       4 5        6  7   8   9    10 1112
        |         | |       | |        |  |   |   |    |  | |
 $--RMC,hhmmss.ss,A,ddmm.mm,a,dddmm.mm,a,x.x,x.x,xxxx,x.x,a,m*hh<CR><LF>

NMEA 4.1:

        1         2 3       4 5        6  7   8   9    10 111213
        |         | |       | |        |  |   |   |    |  | | |
 $--RMC,hhmmss.ss,A,ddmm.mm,a,dddmm.mm,a,x.x,x.x,xxxx,x.x,a,m,s*hh<CR><LF>
  1. UTC of position fix, hh is hours, mm is minutes, ss.ss is seconds.
  2. Status, A = Valid, V = Warning
  3. Latitude, dd is degrees. mm.mm is minutes.
  4. N or S
  5. Longitude, ddd is degrees. mm.mm is minutes.
  6. E or W
  7. Speed over ground, knots
  8. Track made good, degrees true
  9. Date, ddmmyy
  10. Magnetic Variation, degrees
  11. E or W
  12. FAA mode indicator (NMEA 2.3 and later)
  13. Nav Status (NMEA 4.1 and later) A = autonomous, D = differential, E = Estimated, M = Manual input mode, N = not valid, S = Simulator, V = Valid

Fields§

§fix_time: Option<NaiveTime>§fix_date: Option<NaiveDate>§status_of_fix: RmcStatusOfFix§lat: Option<f64>§lon: Option<f64>§speed_over_ground: Option<f32>§true_course: Option<f32>§magnetic_variation: Option<f32>§faa_mode: Option<FaaMode>§nav_status: Option<RmcNavigationStatus>

Trait Implementations§

source§

impl Clone for RmcData

source§

fn clone(&self) -> RmcData

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 RmcData

source§

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

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

impl<'de> Deserialize<'de> for RmcData

source§

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 PartialEq<RmcData> for RmcData

source§

fn eq(&self, other: &RmcData) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl Serialize for RmcData

source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl Copy for RmcData

source§

impl StructuralPartialEq for RmcData

Auto Trait Implementations§

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>,