Struct asyncio::WaitableTimer
[−]
[src]
pub struct WaitableTimer<C: Clock> { /* fields omitted */ }
Provides waitable timer functionality.
Methods
impl<C: Clock> WaitableTimer<C>
[src]
fn new(io: &IoService) -> WaitableTimer<C>
fn async_wait_at<F>(&self, endpoint: C::TimePoint, handler: F) -> F::Output where F: Handler<()>
fn async_wait_for<F>(&self, duration: C::Duration, handler: F) -> F::Output where F: Handler<()>
fn cancel(&self)
fn wait_at(&self, endpoint: C::TimePoint) -> Result<()>
fn wait_for(&self, duration: C::Duration) -> Result<()>
Trait Implementations
impl<C: Clock> IoObject for WaitableTimer<C>
[src]
fn io_service(&self) -> &IoService
Returns a IoService
associated with this object.