#[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
sourceimpl Clone for TimeCapabilities
impl Clone for TimeCapabilities
sourcefn clone(&self) -> TimeCapabilities
fn clone(&self) -> TimeCapabilities
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for TimeCapabilities
impl Debug for TimeCapabilities
sourceimpl PartialEq<TimeCapabilities> for TimeCapabilities
impl PartialEq<TimeCapabilities> for TimeCapabilities
sourcefn eq(&self, other: &TimeCapabilities) -> bool
fn eq(&self, other: &TimeCapabilities) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &TimeCapabilities) -> bool
fn ne(&self, other: &TimeCapabilities) -> bool
This method tests for !=
.
impl Copy for TimeCapabilities
impl Eq for TimeCapabilities
impl StructuralEq for TimeCapabilities
impl StructuralPartialEq for TimeCapabilities
Auto Trait Implementations
impl RefUnwindSafe for TimeCapabilities
impl Send for TimeCapabilities
impl Sync for TimeCapabilities
impl Unpin for TimeCapabilities
impl UnwindSafe for TimeCapabilities
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more