Struct scheduled_executor::executor::ThreadPoolExecutor
[−]
[src]
pub struct ThreadPoolExecutor { /* fields omitted */ }
Methods
impl ThreadPoolExecutor
[src]
fn new(threads: usize) -> Result<ThreadPoolExecutor, Error>
fn with_prefix(
threads: usize,
prefix: &str
) -> Result<ThreadPoolExecutor, Error>
threads: usize,
prefix: &str
) -> Result<ThreadPoolExecutor, Error>
fn with_executor(
threads: usize,
prefix: &str,
executor: CoreExecutor
) -> ThreadPoolExecutor
threads: usize,
prefix: &str,
executor: CoreExecutor
) -> ThreadPoolExecutor
fn schedule_fixed_rate<F>(
&self,
initial: Duration,
interval: Duration,
scheduled_fn: F
) where
F: Fn(&Remote) + Send + Sync + 'static,
&self,
initial: Duration,
interval: Duration,
scheduled_fn: F
) where
F: Fn(&Remote) + Send + Sync + 'static,
fn pool(&self) -> &CpuPool
Trait Implementations
impl Clone for ThreadPoolExecutor
[src]
fn clone(&self) -> ThreadPoolExecutor
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more