Trait TryStream
trait TryStream: Stream + private_try_stream::Sealed
A convenience for streams that return Result values that includes
a variety of adapters tailored to such futures.
Associated Types
type OkThe type of successful values yielded by this future
type ErrorThe type of failures yielded by this future
Required Methods
fn try_poll_next(self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Option<Result<<Self as >::Ok, <Self as >::Error>>>Poll this
TryStreamas if it were aStream.This method is a stopgap for a compiler limitation that prevents us from directly inheriting from the
Streamtrait; in the future it won't be needed.
Implementors
impl<S, T, E> TryStream for S