Struct bones_ecs::prelude::futures::future::CatchUnwind
pub struct CatchUnwind<F> { /* private fields */ }
Expand description
Future for the FutureExt::catch_unwind()
method.
Trait Implementations§
§impl<F> Debug for CatchUnwind<F>where
F: Debug,
impl<F> Debug for CatchUnwind<F>where F: Debug,
§impl<F> Future for CatchUnwind<F>where
F: Future + UnwindSafe,
impl<F> Future for CatchUnwind<F>where F: Future + UnwindSafe,
§type Output = Result<<F as Future>::Output, Box<dyn Any + Send>>
type Output = Result<<F as Future>::Output, Box<dyn Any + Send>>
The type of value produced on completion.
§fn poll(
self: Pin<&mut CatchUnwind<F>>,
cx: &mut Context<'_>
) -> Poll<<CatchUnwind<F> as Future>::Output>
fn poll( self: Pin<&mut CatchUnwind<F>>, cx: &mut Context<'_> ) -> Poll<<CatchUnwind<F> as Future>::Output>
Attempt to resolve the future to a final value, registering
the current task for wakeup if the value is not yet available. Read more
impl<'__pin, F> Unpin for CatchUnwind<F>where __Origin<'__pin, F>: Unpin,
Auto Trait Implementations§
impl<F> RefUnwindSafe for CatchUnwind<F>where F: RefUnwindSafe,
impl<F> Send for CatchUnwind<F>where F: Send,
impl<F> Sync for CatchUnwind<F>where F: Sync,
impl<F> UnwindSafe for CatchUnwind<F>where F: UnwindSafe,
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<F> FutureExt for Fwhere
F: Future + ?Sized,
impl<F> FutureExt for Fwhere F: Future + ?Sized,
§fn catch_unwind(self) -> CatchUnwind<Self> ⓘwhere
Self: Sized + UnwindSafe,
fn catch_unwind(self) -> CatchUnwind<Self> ⓘwhere Self: Sized + UnwindSafe,
Catches panics while polling the future. Read more
source§impl<F> IntoFuture for Fwhere
F: Future,
impl<F> IntoFuture for Fwhere F: Future,
§type IntoFuture = F
type IntoFuture = F
Which kind of future are we turning this into?
source§fn into_future(self) -> <F as IntoFuture>::IntoFuture
fn into_future(self) -> <F as IntoFuture>::IntoFuture
Creates a future from a value. Read more