[]Struct async_std::stream::RepeatWith

pub struct RepeatWith<F, Fut, A> { /* fields omitted */ }

A stream that repeats elements of type T endlessly by applying a provided closure.

This stream is created by the repeat_with function. See its documentation for more.

Trait Implementations

impl<F, Fut, A> Stream for RepeatWith<F, Fut, A> where
    F: FnMut() -> Fut,
    Fut: Future<Output = A>, 
[src]

type Item = A

The type of items yielded by this stream. Read more

impl<'__pin, F, Fut, A> Unpin for RepeatWith<F, Fut, A> where
    __Origin<'__pin, F, Fut, A>: Unpin

impl<F: Debug, Fut: Debug, A: Debug> Debug for RepeatWith<F, Fut, A>[src]

Auto Trait Implementations

impl<F, Fut, A> Send for RepeatWith<F, Fut, A> where
    A: Send,
    F: Send,
    Fut: Send

impl<F, Fut, A> Sync for RepeatWith<F, Fut, A> where
    A: Sync,
    F: Sync,
    Fut: Sync

impl<F, Fut, A> UnwindSafe for RepeatWith<F, Fut, A> where
    A: UnwindSafe,
    F: UnwindSafe,
    Fut: UnwindSafe

impl<F, Fut, A> RefUnwindSafe for RepeatWith<F, Fut, A> where
    A: RefUnwindSafe,
    F: RefUnwindSafe,
    Fut: RefUnwindSafe

Blanket Implementations

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

impl<T> From<T> for 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.

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

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

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