# 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]

#### `pub fn new(set: Arc<EventSet>, id: usize) -> UnparkEvent`
[src]

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]

#### `fn clone(&self) -> UnparkEvent`
[src]

Returns a copy of the value. Read more

#### `fn clone_from(&mut self, source: &Self)`
1.0.0
[src]

Performs copy-assignment from `source`. Read more

### `impl Debug for UnparkEvent`
[src]

#### `fn fmt(&self, f: &mut Formatter) -> Result`
[src]

Formats the value using the given formatter. Read more

# Help

## Keyboard Shortcuts

`?`
  Show this help dialog
`S`
  Focus the search field
`↑`
  Move up in search results
`↓`
  Move down in search results
`↹`
  Switch tab
`⏎`
  Go to active search result
`+`
  Expand all sections
`-`
  Collapse all sections

## Search Tricks

Prefix searches with a type followed by a colon (e.g. `fn:`) to restrict the search to a given type.

Accepted types are: `fn`, `mod`, `struct`, `enum`, `trait`, `type`, `macro`, and `const`.

Search functions by type signature (e.g. `vec -> usize` or `* -> vec`)