Struct futures::task::UnparkEvent [] [src]

pub struct UnparkEvent {
    // some fields omitted
}

A set insertion to trigger upon unpark.

Unpark events are used to communicate information about why an unpark occured, in particular populating sets with event identifiers so that the unparked task can avoid extraneous polling. See with_unpark_event for more.

Methods

impl UnparkEvent
[src]

fn new(set: Arc<EventSet>, id: usize) -> UnparkEvent

Construct an unpark event that will insert id into set when triggered.

Trait Implementations

impl Clone for UnparkEvent
[src]

fn clone(&self) -> UnparkEvent

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)
1.0.0

Performs copy-assignment from source. Read more