pub enum WallClockSource {
Platform,
Sntp,
ZenohHlc,
Board,
Unknown(u8),
}Expand description
Which source answers the wall clock (WallClockState::source); the
values of NROS_WALL_CLOCK_SOURCE_* in nros/platform.h.
Variants§
Platform
The port’s own clock (POSIX CLOCK_REALTIME; none on FreeRTOS/ThreadX).
Sntp
An SNTP exchange set the offset.
ZenohHlc
Zenoh HLC timestamps on received samples set the offset.
Board
The board’s clock hook.
Unknown(u8)
A value this crate does not know, from a newer port.
Trait Implementations§
Source§impl Clone for WallClockSource
impl Clone for WallClockSource
Source§fn clone(&self) -> WallClockSource
fn clone(&self) -> WallClockSource
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 WallClockSource
Source§impl Debug for WallClockSource
impl Debug for WallClockSource
impl Eq for WallClockSource
Source§impl PartialEq for WallClockSource
impl PartialEq for WallClockSource
impl StructuralPartialEq for WallClockSource
Auto Trait Implementations§
impl Freeze for WallClockSource
impl RefUnwindSafe for WallClockSource
impl Send for WallClockSource
impl Sync for WallClockSource
impl Unpin for WallClockSource
impl UnsafeUnpin for WallClockSource
impl UnwindSafe for WallClockSource
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