Struct tokio_timer_futures2::Interval
[−]
[src]
pub struct Interval { /* fields omitted */ }
A stream representing notifications at fixed interval
Intervals are created through Timer::interval
.
Trait Implementations
impl Debug for Interval
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl Stream for Interval
[src]
type Item = ()
Values yielded by the stream.
type Error = TimerError
Errors yielded by the stream.
fn poll_next(&mut self, cx: &mut Context) -> Poll<Option<()>, TimerError>
[src]
Attempt to pull out the next value of this stream, registering the current task for wakeup if the value is not yet available, and returning None
if the stream is exhausted. Read more