Struct sbp::messages::gnss::gps_time_sec::GpsTimeSec
source · pub struct GpsTimeSec {
pub tow: u32,
pub wn: u16,
}
Expand description
Whole second accurate GPS time
A GPS time, defined as the number of seconds since beginning of the week on the Saturday/Sunday transition.
Fields§
§tow: u32
Seconds since start of GPS week
wn: u16
GPS week number
Trait Implementations§
source§impl Clone for GpsTimeSec
impl Clone for GpsTimeSec
source§fn clone(&self) -> GpsTimeSec
fn clone(&self) -> GpsTimeSec
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for GpsTimeSec
impl Debug for GpsTimeSec
source§impl<'de> Deserialize<'de> for GpsTimeSec
impl<'de> Deserialize<'de> for GpsTimeSec
source§fn 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
source§impl PartialEq for GpsTimeSec
impl PartialEq for GpsTimeSec
source§fn eq(&self, other: &GpsTimeSec) -> bool
fn eq(&self, other: &GpsTimeSec) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for GpsTimeSec
impl Serialize for GpsTimeSec
source§impl TryFrom<GpsTimeSec> for GpsTime
impl TryFrom<GpsTimeSec> for GpsTime
§type Error = InvalidGpsTime
type Error = InvalidGpsTime
The type returned in the event of a conversion error.
source§fn try_from(msg: GpsTimeSec) -> Result<GpsTime, InvalidGpsTime>
fn try_from(msg: GpsTimeSec) -> Result<GpsTime, InvalidGpsTime>
Performs the conversion.
impl StructuralPartialEq for GpsTimeSec
Auto Trait Implementations§
impl Freeze for GpsTimeSec
impl RefUnwindSafe for GpsTimeSec
impl Send for GpsTimeSec
impl Sync for GpsTimeSec
impl Unpin for GpsTimeSec
impl UnwindSafe for GpsTimeSec
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more