Skip to main content

TryTools

Trait TryTools 

Source
pub trait TryTools<T, E, S>
where S: TryStream<Ok = T, Error = E, Item = Result<T, E>> + ?Sized, Self: TryStream + Sized,
{ // Required method fn try_take( self, n: usize, ) -> TryTakeWhile<Self, Ready<Result<bool, S::Error>>, impl FnMut(&S::Ok) -> Ready<Result<bool, S::Error>>>; }
Expand description

TryStreamTools

Required Methods§

Source

fn try_take( self, n: usize, ) -> TryTakeWhile<Self, Ready<Result<bool, S::Error>>, impl FnMut(&S::Ok) -> Ready<Result<bool, S::Error>>>

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.

Implementors§

Source§

impl<T, E, S> TryTools<T, E, S> for S
where S: TryStream<Ok = T, Error = E, Item = Result<T, E>> + ?Sized, Self: TryStream + Sized,