pub struct Rmc {
pub valid: bool,
pub time: Option<DateTime>,
pub latitude: Option<i32>,
pub longitude: Option<i32>,
}Expand description
The RMC sentence.
The only one that carries a date, and therefore the only one that can
establish what day it is. A receiver emits RMC with status = V
(void) while searching, sometimes already carrying a valid time from
its own real-time clock — which is exactly the case the
valid flag separates from a real fix.
Fields§
§valid: boolWhether the receiver reports the position as valid (A, not V).
time: Option<DateTime>UTC instant, when both the time and date fields were present and in range.
latitude: Option<i32>Latitude in 1e-7 degrees, positive north.
longitude: Option<i32>Longitude in 1e-7 degrees, positive east.
Trait Implementations§
impl Copy for Rmc
impl Eq for Rmc
impl StructuralPartialEq for Rmc
Auto Trait Implementations§
impl Freeze for Rmc
impl RefUnwindSafe for Rmc
impl Send for Rmc
impl Sync for Rmc
impl Unpin for Rmc
impl UnwindSafe for Rmc
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)