Struct futures::task::UnparkEvent
[−]
[src]
pub struct UnparkEvent { /* fields omitted */ }
Deprecated
: recommended to use FuturesUnordered
instead
A set insertion to trigger upon unpark
.
Unpark events are used to communicate information about why an unpark
occurred, 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]
impl UnparkEvent
pub fn new(set: Arc<EventSet>, id: usize) -> UnparkEvent
[src]
pub fn new(set: Arc<EventSet>, id: usize) -> UnparkEvent
Deprecated
: recommended to use FuturesUnordered
instead
Construct an unpark event that will insert id
into set
when
triggered.
Trait Implementations
impl Clone for UnparkEvent
[src]
impl Clone for UnparkEvent
fn clone(&self) -> UnparkEvent
[src]
fn clone(&self) -> UnparkEvent
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl Debug for UnparkEvent
[src]
impl Debug for UnparkEvent
Auto Trait Implementations
impl Send for UnparkEvent
impl Send for UnparkEvent
impl Sync for UnparkEvent
impl Sync for UnparkEvent