Struct stop_token::future::TimeoutAt
source · [−]pub struct TimeoutAt<F> { /* private fields */ }
Expand description
Run a future until it resolves, or until a deadline is hit.
This method is returned by [FutureExt::deadline
].
Trait Implementations
Auto Trait Implementations
impl<F> RefUnwindSafe for TimeoutAt<F> where
F: RefUnwindSafe,
impl<F> UnwindSafe for TimeoutAt<F> where
F: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more
A convenience for calling Future::poll()
on !
Unpin
types.
Returns the result of self
or other
future, preferring self
if both are ready. Read more
Returns the result of self
or other
future, with no preference if both are ready. Read more
fn catch_unwind(self) -> CatchUnwind<Self> where
Self: UnwindSafe,
fn catch_unwind(self) -> CatchUnwind<Self> where
Self: UnwindSafe,
Catches panics while polling the future. Read more
Boxes the future and changes its type to dyn Future + Send + 'a
. Read more
🔬 This is a nightly-only experimental API. (
into_future
)The output that the future will produce on completion.
type Future = F
type Future = F
🔬 This is a nightly-only experimental API. (
into_future
)Which kind of future are we turning this into?
🔬 This is a nightly-only experimental API. (
into_future
)Creates a future from a value.