Struct autd3_timer::Timer
source · 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> 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