[−][src]Struct futures_test::task::PanicWake
An implementation of Wake
that panics when
woken.
Examples
#![feature(futures_api)] use futures_test::task::panic_local_waker_ref; let lw = panic_local_waker_ref(); lw.wake(); // Will panic
Methods
impl PanicWake
[src]
Trait Implementations
impl Default for PanicWake
[src]
impl Debug for PanicWake
[src]
impl UnsafeWake for PanicWake
[src]
unsafe fn clone_raw(&self) -> Waker
[src]
unsafe fn drop_raw(&self)
[src]
unsafe fn wake(&self)
[src]
unsafe fn wake_local(&self)
[src]
🔬 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
impl Wake for PanicWake
[src]
fn wake(_arc_self: &Arc<Self>)
[src]
unsafe fn wake_local(arc_self: &Arc<Self>)
[src]
🔬 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
Auto Trait Implementations
Blanket Implementations
impl<T> From for T
[src]
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom for T where
T: From<U>,
[src]
T: From<U>,
type Error = !
try_from
)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
try_from
)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,