pub struct Timer<F: TimerCallback> { /* private fields */ }
Implementations§
Source§impl<F: TimerCallback> Timer<F>
impl<F: TimerCallback> Timer<F>
pub fn start(cb: F, period_ns: u32) -> Result<Box<Self>, TimerError>
pub fn close(self) -> Result<F, TimerError>
Auto Trait Implementations§
impl<F> Freeze for Timer<F>where
F: Freeze,
impl<F> RefUnwindSafe for Timer<F>where
F: RefUnwindSafe,
impl<F> Send for Timer<F>where
F: Send,
impl<F> Sync for Timer<F>where
F: Sync,
impl<F> Unpin for Timer<F>where
F: Unpin,
impl<F> UnwindSafe for Timer<F>where
F: UnwindSafe,
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