Struct futures::stream::CatchUnwind [−][src]
#[must_use = "streams do nothing unless polled"]pub struct CatchUnwind<St> where
St: Stream, { /* fields omitted */ }
Stream for the catch_unwind
combinator.
This is created by the Stream::catch_unwind
method.
Trait Implementations
impl<St> Debug for CatchUnwind<St> where
St: Debug + Stream,
[src]
impl<St> Debug for CatchUnwind<St> where
St: Debug + Stream,
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>
[src]
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>
Formats the value using the given formatter. Read more
impl<St> Stream for CatchUnwind<St> where
St: UnwindSafe + Stream,
[src]
impl<St> Stream for CatchUnwind<St> where
St: UnwindSafe + Stream,
type Item = Result<<St as Stream>::Item, Box<Any + 'static + Send>>
Values yielded by the stream.
fn poll_next(
self: PinMut<CatchUnwind<St>>,
cx: &mut Context
) -> Poll<Option<<CatchUnwind<St> as Stream>::Item>>
[src]
fn poll_next(
self: PinMut<CatchUnwind<St>>,
cx: &mut Context
) -> Poll<Option<<CatchUnwind<St> as Stream>::Item>>
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<St> Send for CatchUnwind<St> where
St: Send,
impl<St> Send for CatchUnwind<St> where
St: Send,
impl<St> Sync for CatchUnwind<St> where
St: Sync,
impl<St> Sync for CatchUnwind<St> where
St: Sync,