pub struct ReceiverTimeBlock {
pub utc_year: i16,
pub utc_month: u8,
pub utc_day: u8,
pub utc_hour: u8,
pub utc_minute: u8,
pub utc_second: u8,
pub delta_ls: i8,
pub sync_level: u8,
/* private fields */
}Expand description
ReceiverTime block (Block ID 5914)
UTC time from the receiver.
Fields§
§utc_year: i16UTC year
utc_month: u8UTC month (1-12)
utc_day: u8UTC day (1-31)
utc_hour: u8UTC hour (0-23)
utc_minute: u8UTC minute (0-59)
utc_second: u8UTC second (0-60, 60 for leap second)
delta_ls: i8Leap seconds (TAI - UTC)
sync_level: u8Synchronization level
Implementations§
Source§impl ReceiverTimeBlock
impl ReceiverTimeBlock
pub fn tow_seconds(&self) -> f64
pub fn tow_ms(&self) -> u32
pub fn wnc(&self) -> u16
Sourcepub fn utc_string(&self) -> String
pub fn utc_string(&self) -> String
Get UTC time as a formatted string (ISO 8601)
Sourcepub fn sync_level_desc(&self) -> &'static str
pub fn sync_level_desc(&self) -> &'static str
Get sync level description
Sourcepub fn is_synchronized(&self) -> bool
pub fn is_synchronized(&self) -> bool
Check if time is fully synchronized
Trait Implementations§
Source§impl Clone for ReceiverTimeBlock
impl Clone for ReceiverTimeBlock
Source§fn clone(&self) -> ReceiverTimeBlock
fn clone(&self) -> ReceiverTimeBlock
Returns a duplicate 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 ReceiverTimeBlock
impl Debug for ReceiverTimeBlock
Auto Trait Implementations§
impl Freeze for ReceiverTimeBlock
impl RefUnwindSafe for ReceiverTimeBlock
impl Send for ReceiverTimeBlock
impl Sync for ReceiverTimeBlock
impl Unpin for ReceiverTimeBlock
impl UnsafeUnpin for ReceiverTimeBlock
impl UnwindSafe for ReceiverTimeBlock
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