pub trait PollSyncIter: AsyncIterator {
// Provided method
fn poll_sync_iter(
self: Pin<&mut Self>,
cx: &mut Context<'_>,
) -> Poll<SyncIter<IntoIter<Self::Item>>>
where Self: Sized + Unpin { ... }
}Provided Methods§
fn poll_sync_iter( self: Pin<&mut Self>, cx: &mut Context<'_>, ) -> Poll<SyncIter<IntoIter<Self::Item>>>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".
Implementors§
impl<B, I, F, Fut> PollSyncIter for AsyncMap<I, F>
Enables conversion of an AsyncMap into a synchronous SyncIter by polling the async iterator
and collecting items into a vector. Implements the PollSyncIter trait, allowing integration with
the Future implementation below.