futures_buffered

Trait TryStream

source
pub trait TryStream: Stream<Item = Result<Self::Ok, Self::Err>> + Sealed {
    type Ok;
    type Err;
}
Expand description

A convenience for streams that return Result values that includes a variety of adapters tailored to such futures.

This is futures::TryStream except it’s stricter on the stream super-trait.

Required Associated Types§

Implementors§

source§

impl<T, E, S: ?Sized + Stream<Item = Result<T, E>>> TryStream for S

source§

type Ok = T

source§

type Err = E