Struct futures_util::stream::CatchUnwind
[−]
[src]
#[must_use = "streams do nothing unless polled"]pub struct CatchUnwind<S> where
S: Stream, { /* fields omitted */ }
Stream for the catch_unwind combinator.
This is created by the Stream::catch_unwind method.
Trait Implementations
impl<S: Debug> Debug for CatchUnwind<S> where
S: Stream, [src]
S: Stream,
fn fmt(&self, __arg_0: &mut Formatter) -> Result[src]
Formats the value using the given formatter. Read more
impl<S> Stream for CatchUnwind<S> where
S: Stream + UnwindSafe, [src]
S: Stream + UnwindSafe,
type Item = Result<S::Item, S::Error>
Values yielded by the stream.
type Error = Box<Any + Send>
Errors yielded by the stream.
fn poll_next(
&mut self,
cx: &mut Context
) -> Poll<Option<Self::Item>, Self::Error>[src]
&mut self,
cx: &mut Context
) -> Poll<Option<Self::Item>, Self::Error>
Attempt to pull out the next value of this stream, registering the current task for wakeup if the value is not yet available, and returning None if the stream is exhausted. Read more
Auto Trait Implementations
impl<S> Send for CatchUnwind<S> where
S: Send,
S: Send,
impl<S> Sync for CatchUnwind<S> where
S: Sync,
S: Sync,