#[repr(C)]pub struct TimeCapabilities {
pub resolution: u32,
pub accuracy: u32,
pub sets_to_zero: bool,
}
Expand description
Real time clock capabilities.
Fields§
§resolution: u32
Reporting resolution of the clock in counts per second. 1 for a normal PC-AT CMOS RTC device, which reports the time with 1-second resolution.
accuracy: u32
Timekeeping accuracy in units of 1e-6 parts per million.
sets_to_zero: bool
Whether a time set operation clears the device’s time below the “resolution” reporting level. False for normal PC-AT CMOS RTC devices.
Trait Implementations§
source§impl Clone for TimeCapabilities
impl Clone for TimeCapabilities
source§fn clone(&self) -> TimeCapabilities
fn clone(&self) -> TimeCapabilities
Returns a copy 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 TimeCapabilities
impl Debug for TimeCapabilities
source§impl Default for TimeCapabilities
impl Default for TimeCapabilities
source§fn default() -> TimeCapabilities
fn default() -> TimeCapabilities
Returns the “default value” for a type. Read more
source§impl Hash for TimeCapabilities
impl Hash for TimeCapabilities
source§impl Ord for TimeCapabilities
impl Ord for TimeCapabilities
source§fn cmp(&self, other: &TimeCapabilities) -> Ordering
fn cmp(&self, other: &TimeCapabilities) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for TimeCapabilities
impl PartialEq for TimeCapabilities
source§impl PartialOrd for TimeCapabilities
impl PartialOrd for TimeCapabilities
impl Copy for TimeCapabilities
impl Eq for TimeCapabilities
impl StructuralPartialEq for TimeCapabilities
Auto Trait Implementations§
impl Freeze for TimeCapabilities
impl RefUnwindSafe for TimeCapabilities
impl Send for TimeCapabilities
impl Sync for TimeCapabilities
impl Unpin for TimeCapabilities
impl UnwindSafe for TimeCapabilities
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)