#[repr(C)]pub struct WallClockState {
pub synced: bool,
pub source: u8,
pub steps: u32,
}Expand description
nros_wall_clock_state_t: whether the wall clock is synced, which source
answers (WALL_CLOCK_SOURCE_*), and how many times that source changed
since boot.
Fields§
§synced: booltrue: PlatformTime::time_now_ns answers real UNIX time.
source: u8One of WALL_CLOCK_SOURCE_*.
steps: u32Source changes since boot.
Implementations§
Source§impl WallClockState
impl WallClockState
Sourcepub const UNSYNCED_PLATFORM: WallClockState
pub const UNSYNCED_PLATFORM: WallClockState
The answer of a port with no wall clock: unsynced, its own clock, never stepped.
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