pub struct Clocksource { /* private fields */ }
Implementations§
Source§impl Clocksource
impl Clocksource
Sourcepub fn new() -> Clocksource
pub fn new() -> Clocksource
create a new clocksource
Sourcepub fn configured(reference: Clock, source: Clock) -> Clocksource
pub fn configured(reference: Clock, source: Clock) -> Clocksource
allows manual configuration of the Clocksource
and performs initial calibration
Sourcepub fn recalibrate(&mut self)
pub fn recalibrate(&mut self)
recalculate the frequency, without changing the reference time
Sourcepub fn phase_error(&self) -> f64
pub fn phase_error(&self) -> f64
estimate of the phase error between the source and reference clocksource
Trait Implementations§
Source§impl Clone for Clocksource
impl Clone for Clocksource
Source§fn clone(&self) -> Clocksource
fn clone(&self) -> Clocksource
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 Default for Clocksource
impl Default for Clocksource
Source§fn default() -> Clocksource
fn default() -> Clocksource
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for Clocksource
impl RefUnwindSafe for Clocksource
impl Send for Clocksource
impl Sync for Clocksource
impl Unpin for Clocksource
impl UnwindSafe for Clocksource
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