#[repr(C)]pub struct WallClockState {
pub synced: bool,
pub source_id: u8,
pub steps: u32,
}Expand description
What the wall-clock stamps mean right now: the answer to
nros_platform_wall_clock_state(), field for field.
An application that must not publish unstamped data asks
wall_clock_state before publishing. While synced is false the wall
clock reads 0, so every header.stamp is ROS’s “unset” time.
Fields§
§synced: booltrue: the wall clock answers real UNIX time.
source_id: u8The raw NROS_WALL_CLOCK_SOURCE_* value; WallClockState::source
names it.
steps: u32How many times the answering source has changed since boot.
Implementations§
Source§impl WallClockState
impl WallClockState
Sourcepub const fn source(&self) -> WallClockSource
pub const fn source(&self) -> WallClockSource
The source answering, or the one that will once it syncs.
Trait Implementations§
Source§impl Clone for WallClockState
impl Clone for WallClockState
Source§fn clone(&self) -> WallClockState
fn clone(&self) -> WallClockState
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for WallClockState
Source§impl Debug for WallClockState
impl Debug for WallClockState
impl Eq for WallClockState
Source§impl PartialEq for WallClockState
impl PartialEq for WallClockState
impl StructuralPartialEq for WallClockState
Auto Trait Implementations§
impl Freeze for WallClockState
impl RefUnwindSafe for WallClockState
impl Send for WallClockState
impl Sync for WallClockState
impl Unpin for WallClockState
impl UnsafeUnpin for WallClockState
impl UnwindSafe for WallClockState
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