Struct futures_util::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> Debug for CatchUnwind<F> where
F: Future,
[src]
F: Future,
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[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::Item, F::Error>
A successful value
type Error = Box<Any + Send>
An error
fn poll(&mut self, cx: &mut Context) -> Poll<Self::Item, Self::Error>
[src]
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,