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 ArcExecutorpub 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 ArcExecutorfn clone(&self) -> ArcExecutor[src]
fn clone(&self) -> ArcExecutorReturns 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 ArcExecutorAuto Trait Implementations
impl Send for ArcExecutor
impl Send for ArcExecutorimpl Sync for ArcExecutor
impl Sync for ArcExecutor