Trait tokio_timer::timer::Now [] [src]

pub trait Now {
    fn now(&mut self) -> Instant;
}

Returns Instant values representing the current instant in time.

This allows customizing the source of time which is especially useful for testing.

Required Methods

Returns an instant corresponding to "now".

Implementors