[][src]Struct tokio_os_timer::Interval

pub struct Interval { /* fields omitted */ }

A stream that yields once every time a fixed amount of time elapses.

Instances of Interval perform no work.

Methods

impl Interval[src]

pub fn new(interval: Duration) -> Result<Self>[src]

Deprecated since 0.1.8:

Please use the async-timer crate

Create a new Interval instance that yields at now + interval, and every subsequent interval.

Trait Implementations

impl Stream for Interval[src]

type Item = ()

The type of item this stream will yield on success.

type Error = Error

The type of error this stream may generate.

Auto Trait Implementations

impl !RefUnwindSafe for Interval

impl Send for Interval

impl Sync for Interval

impl Unpin for Interval

impl !UnwindSafe for Interval

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.