Skip to main content

AsyncSourceIterator

Trait AsyncSourceIterator 

Source
pub trait AsyncSourceIterator: Send {
    // Required method
    fn next_sample_async(&mut self) -> BoxFuture<'_, Option<Result<Sample>>>;
}
Expand description

Async iterator over samples from a source.

Required Methods§

Source

fn next_sample_async(&mut self) -> BoxFuture<'_, Option<Result<Sample>>>

Get the next sample asynchronously, or None if exhausted.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§