#[repr(C)]pub struct nros_wall_clock_state_t {
pub synced: bool,
pub source: u8,
pub steps: u32,
}Expand description
What the wall-clock stamps mean right now.
Fields§
§synced: booltrue: nros_platform_time_now_ns answers real UNIX time. false:
it answers 0, and every header.stamp is ROS’s “unset” time.
source: u8The source answering, or that will answer once it syncs: one of
NROS_WALL_CLOCK_SOURCE_*.
steps: u32How many times the answering source has CHANGED since boot. 0 for an image whose stamps all come from one clock.
Trait Implementations§
Source§impl Clone for nros_wall_clock_state_t
impl Clone for nros_wall_clock_state_t
Source§fn clone(&self) -> nros_wall_clock_state_t
fn clone(&self) -> nros_wall_clock_state_t
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 nros_wall_clock_state_t
Auto Trait Implementations§
impl Freeze for nros_wall_clock_state_t
impl RefUnwindSafe for nros_wall_clock_state_t
impl Send for nros_wall_clock_state_t
impl Sync for nros_wall_clock_state_t
impl Unpin for nros_wall_clock_state_t
impl UnsafeUnpin for nros_wall_clock_state_t
impl UnwindSafe for nros_wall_clock_state_t
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