Struct form_data::ArcExecutor [−][src]
pub struct ArcExecutor { /* fields omitted */ }
The executor type stored inside a Form
Any executor capable of being shared and executing boxed futures can be stored here.
Methods
impl ArcExecutor
[src]
impl ArcExecutor
pub fn new<E>(executor: E) -> Self where
E: Executor<Box<Future<Item = (), Error = ()> + Send>> + Send + Sync + Clone + 'static,
[src]
pub fn new<E>(executor: E) -> Self where
E: Executor<Box<Future<Item = (), Error = ()> + Send>> + Send + Sync + Clone + 'static,
Create a new ArcExecutor from an Executor
This essentially wraps the given executor in an Arc
Trait Implementations
impl Clone for ArcExecutor
[src]
impl Clone for ArcExecutor
fn clone(&self) -> ArcExecutor
[src]
fn clone(&self) -> ArcExecutor
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 Executor<Box<Future<Item = (), Error = ()> + Send>> for ArcExecutor
[src]
impl Executor<Box<Future<Item = (), Error = ()> + Send>> for ArcExecutor
Auto Trait Implementations
impl Send for ArcExecutor
impl Send for ArcExecutor
impl Sync for ArcExecutor
impl Sync for ArcExecutor