Struct futures::future::CatchUnwind
[−]
[src]
#[must_use = "futures do nothing unless polled"]pub struct CatchUnwind<F> where
F: Future, { /* fields omitted */ }
Future for the catch_unwind
combinator.
This is created by the Future::catch_unwind
method.
Trait Implementations
impl<F> Debug for CatchUnwind<F> where
F: Debug + Future,
[src]
F: Debug + Future,
fn fmt(&self, __arg_0: &mut Formatter) -> Result<(), Error>
[src]
Formats the value using the given formatter. Read more
impl<F> Future for CatchUnwind<F> where
F: Future + UnwindSafe,
[src]
F: Future + UnwindSafe,
type Item = Result<<F as Future>::Item, <F as Future>::Error>
A successful value
type Error = Box<Any + 'static + Send>
An error
fn poll(
&mut self,
cx: &mut Context
) -> Result<Async<<CatchUnwind<F> as Future>::Item>, <CatchUnwind<F> as Future>::Error>
[src]
&mut self,
cx: &mut Context
) -> Result<Async<<CatchUnwind<F> as Future>::Item>, <CatchUnwind<F> as Future>::Error>
Attempt to resolve the future to a final value, registering the current task for wakeup if the value is not yet available. Read more
Auto Trait Implementations
impl<F> Send for CatchUnwind<F> where
F: Send,
F: Send,
impl<F> Sync for CatchUnwind<F> where
F: Sync,
F: Sync,