Skip to main content

OptionStream

Trait OptionStream 

Source
pub trait OptionStream<T> {
    // Required method
    fn stream(self) -> impl Stream<Item = T> + Send;
}

Required Methods§

Source

fn stream(self) -> impl Stream<Item = T> + Send

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl<T, O, S, Fut> OptionStream<T> for OptionFuture<Fut>
where Fut: Future<Output = (O, S)> + Send, S: Stream<Item = T> + Send, O: IntoIterator<Item = T> + Send, <O as IntoIterator>::IntoIter: Send, T: Send,

Source§

fn stream(self) -> impl Stream<Item = T> + Send

Implementors§