Struct thread_pool::Sender [] [src]

pub struct Sender<T> { /* fields omitted */ }

A handle that allows dispatching work to a thread pool.

Methods

impl<T: Task> Sender<T>
[src]

Send a task to the thread pool, blocking if necessary

The function may result in spawning additional threads depending on the current state and configuration of the thread pool.

Send a task to the thread pool, blocking if necessary for up to duration

Send a task to the thread pool, returning immediately if at capacity.

impl Sender<Box<TaskBox>>
[src]

Send a fn to run on the thread pool, blocking if necessary

The function may result in spawning additional threads depending on the current state and configuration of the thread pool.

Send a fn to run on the thread pool, blocking if necessary for up to duration

Send a fn to run on the thread pool, returning immediately if at capacity.

Trait Implementations

impl<T> Clone for Sender<T>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<T> Debug for Sender<T>
[src]

Formats the value using the given formatter.