pub struct AppleTimer { /* private fields */ }
Expand description
Posix Timer
Currently implemented only for Linux
and Android
as BSD systems
proved to be a bit problematic
Implementations§
Trait Implementations§
source§impl Future for AppleTimer
impl Future for AppleTimer
source§impl SyncTimer for AppleTimer
impl SyncTimer for AppleTimer
source§impl Timer for AppleTimer
impl Timer for AppleTimer
source§fn is_ticking(&self) -> bool
fn is_ticking(&self) -> bool
Returns whether timer is ongoing. Read more
source§fn is_expired(&self) -> bool
fn is_expired(&self) -> bool
Returns whether timer has expired.
source§fn restart_ctx(&mut self, new_value: Duration, waker: &Waker)
fn restart_ctx(&mut self, new_value: Duration, waker: &Waker)
Restarts timer with new timeout value and waker.
Auto Trait Implementations§
impl Freeze for AppleTimer
impl !RefUnwindSafe for AppleTimer
impl Send for AppleTimer
impl Sync for AppleTimer
impl Unpin for AppleTimer
impl UnwindSafe for AppleTimer
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
source§impl<F> IntoFuture for Fwhere
F: Future,
impl<F> IntoFuture for Fwhere
F: Future,
source§type IntoFuture = F
type IntoFuture = F
Which kind of future are we turning this into?
source§fn into_future(self) -> <F as IntoFuture>::IntoFuture
fn into_future(self) -> <F as IntoFuture>::IntoFuture
Creates a future from a value. Read more