Struct ebml_iterable::TagIteratorAsync
source · pub struct TagIteratorAsync<R: AsyncRead + Unpin, TSpec>where
TSpec: EbmlSpecification<TSpec> + EbmlTag<TSpec> + Clone,{ /* private fields */ }Expand description
This Can be transformed into a [Stream] using into_stream, or consumed directly by calling [.next().await] in a loop.
The struct can be created with the new() function on any source that implements the [futures::AsyncRead] trait.
Implementations§
source§impl<R: AsyncRead + Unpin, TSpec> TagIteratorAsync<R, TSpec>where
TSpec: EbmlSpecification<TSpec> + EbmlTag<TSpec> + Clone,
impl<R: AsyncRead + Unpin, TSpec> TagIteratorAsync<R, TSpec>where
TSpec: EbmlSpecification<TSpec> + EbmlTag<TSpec> + Clone,
pub fn new(read: R) -> Self
sourcepub async fn next(&mut self) -> Option<Result<TSpec, TagIteratorError>>
pub async fn next(&mut self) -> Option<Result<TSpec, TagIteratorError>>
can be consumed