pub struct PanicWake { /* fields omitted */ }
An implementation of Wake
that panics when
woken.
#![feature(futures_api)]
use futures_test::task::panic_local_waker_ref;
let lw = panic_local_waker_ref();
lw.wake();
[+] Show hidden undocumented items🔬 This is a nightly-only experimental API. (futures_api
)
futures in libcore are unstable
Creates a clone of this UnsafeWake
and stores it behind a Waker
. Read more
🔬 This is a nightly-only experimental API. (futures_api
)
futures in libcore are unstable
Drops this instance of UnsafeWake
, deallocating resources associated with it. Read more
🔬 This is a nightly-only experimental API. (futures_api
)
futures in libcore are unstable
Indicates that the associated task is ready to make progress and should be poll
ed. Read more
🔬 This is a nightly-only experimental API. (futures_api
)
futures in libcore are unstable
Indicates that the associated task is ready to make progress and should be poll
ed. This function is the same as wake
, but can only be called from the thread that this UnsafeWake
is "local" to. This allows for implementors to provide specialized wakeup behavior specific to the current thread. This function is called by LocalWaker::wake
. Read more
[+] Show hidden undocumented items🔬 This is a nightly-only experimental API. (futures_api
)
futures in libcore are unstable
Indicates that the associated task is ready to make progress and should be poll
ed. Read more
🔬 This is a nightly-only experimental API. (futures_api
)
futures in libcore are unstable
Indicates that the associated task is ready to make progress and should be poll
ed. This function is like wake
, but can only be called from the thread on which this Wake
was created. Read more
[+] Show hidden undocumented items
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
[−]
[+] Show hidden undocumented items
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)