Struct tokio_stream::wrappers::IntervalStream[][src]

pub struct IntervalStream { /* fields omitted */ }

A wrapper around Interval that implements Stream.

Implementations

impl IntervalStream[src]

pub fn new(interval: Interval) -> Self[src]

Create a new IntervalStream.

pub fn into_inner(self) -> Interval[src]

Get back the inner Interval.

Trait Implementations

impl AsMut<Interval> for IntervalStream[src]

impl AsRef<Interval> for IntervalStream[src]

impl Debug for IntervalStream[src]

impl Stream for IntervalStream[src]

type Item = Instant

Values yielded by the stream.

Auto Trait Implementations

impl !RefUnwindSafe for IntervalStream

impl Send for IntervalStream

impl Sync for IntervalStream

impl Unpin for IntervalStream

impl !UnwindSafe for IntervalStream

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.