pub trait AsyncLendingIterator {
type Ok<'i>
where Self: 'i;
type Err;
// Required method
fn try_next(
&mut self,
) -> impl Future<Output = Result<Option<Self::Ok<'_>>, Self::Err>> + Send;
// Provided method
fn size_hint(&self) -> (usize, Option<usize>) { ... }
}
Expand description
async streaming iterator with borrowed Item from Self.
Required Associated Types§
Required Methods§
fn try_next( &mut self, ) -> impl Future<Output = Result<Option<Self::Ok<'_>>, Self::Err>> + Send
Provided Methods§
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.