pub struct Timer { /* private fields */ }Expand description
The definition of the timers themselves. TODO: Should contain synchronization period and synchronization scale.
Implementations§
Source§impl Timer
impl Timer
Sourcepub fn setup_timer()
pub fn setup_timer()
Setup function. May be used for setting configuration parameters.
Sourcepub fn loop_timer()
pub fn loop_timer()
Starts timer ticking.
Sourcepub fn stop_condition_timer() -> bool
pub fn stop_condition_timer() -> bool
Stops timer ticking. By default, it does not stop.
Sourcepub fn get_tick_counter() -> TickType
pub fn get_tick_counter() -> TickType
Returns tick counter.
Auto Trait Implementations§
impl Freeze for Timer
impl RefUnwindSafe for Timer
impl Send for Timer
impl Sync for Timer
impl Unpin for Timer
impl UnsafeUnpin for Timer
impl UnwindSafe for Timer
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