# Trait futures::executor::Executor [−] [src]

    pub trait Executor: Send + Sync + 'static {
        fn execute(&self, r: Run);
    }

A trait representing requests to poll futures.

This trait is an argument to the `Spawn::execute` which is used to run a future to completion. An executor will receive requests to run a future and an executor is responsible for ensuring that happens in a timely fashion.

Note that this trait is likely to be deprecated and/or renamed to avoid clashing with the `future::Executor` trait. If you've got a use case for this or would like to comment on the name please let us know!

## Required Methods

### `fn execute(&self, r: Run)`

Requests that `Run` is executed soon on the given executor.

## Implementors

# 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`)