[][src]Struct futures_test::task::NoopWake

pub struct NoopWake { /* fields omitted */ }

An implementation of Wake that does nothing when woken.

Examples

#![feature(futures_api)]
use futures_test::task::{panic_context, noop_local_waker_ref};

let mut cx = panic_context();
let cx = &mut cx.with_waker(noop_local_waker_ref());

cx.waker().wake();

Methods

impl NoopWake
[src]

Create a new instance

Trait Implementations

impl Debug for NoopWake
[src]

Formats the value using the given formatter. Read more

impl Default for NoopWake
[src]

Returns the "default value" for a type. Read more

impl Wake for NoopWake
[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 polled. 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 polled. This function is like wake, but can only be called from the thread on which this Wake was created. Read more

impl UnsafeWake for NoopWake
[src]

🔬 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 polled. 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 polled. 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

Auto Trait Implementations

impl Send for NoopWake

impl Sync for NoopWake

Blanket Implementations

impl<T> From for T
[src]

Performs the conversion.

impl<T, U> Into for T where
    U: From<T>, 
[src]

Performs the conversion.

impl<T, U> TryFrom for T where
    T: From<U>, 
[src]

🔬 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)

Performs the conversion.

impl<T> Borrow for T where
    T: ?Sized
[src]

Immutably borrows from an owned value. Read more

impl<T> Any for T where
    T: 'static + ?Sized
[src]

🔬 This is a nightly-only experimental API. (get_type_id)

this method will likely be replaced by an associated static

Gets the TypeId of self. Read more

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

🔬 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)

Performs the conversion.

impl<T> BorrowMut for T where
    T: ?Sized
[src]

Mutably borrows from an owned value. Read more