pub struct Callback { /* fields omitted */ }
Expand description
Timer’s callback abstraction
pub fn plain(cb: fn()) -> Self
[src]
Creates callback using plain rust function
Creates callback using plain unsafe function
pub fn closure<F: 'static + FnMut()>(cb: F) -> Self
[src]
Creates callback using closure, storing it on heap.
impl<T> Any for T where
T: 'static + ?Sized,
[src]
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
impl<T, U> Into<U> for T where
U: From<T>,
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
The type returned in the event of a conversion error.
The type returned in the event of a conversion error.