pub struct Timer<'b, 'a> { /* private fields */ }
Implementations§
source§impl<'b, 'a> Timer<'b, 'a>
impl<'b, 'a> Timer<'b, 'a>
sourcepub fn into_inner(self) -> TimerCallback<'a>
pub fn into_inner(self) -> TimerCallback<'a>
Returns the closure as a trait-object and cancels the timer by consuming it…
Trait Implementations§
Auto Trait Implementations§
impl<'b, 'a> Freeze for Timer<'b, 'a>
impl<'b, 'a> !RefUnwindSafe for Timer<'b, 'a>
impl<'b, 'a> !Send for Timer<'b, 'a>
impl<'b, 'a> Sync for Timer<'b, 'a>
impl<'b, 'a> Unpin for Timer<'b, 'a>
impl<'b, 'a> !UnwindSafe for Timer<'b, 'a>
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