Threadable

Trait Threadable 

Source
pub trait Threadable {
    // Required method
    fn get_pool(&self) -> Result<MaybeThreadPool, LadduError>;
}
Expand description

A trait for objects which can be used in multithreaded contexts

Required Methods§

Source

fn get_pool(&self) -> Result<MaybeThreadPool, LadduError>

Returns a MaybeThreadPool associated with the object.

§Errors

This will return an error if there is any problem constructing the underlying thread pool.

Implementors§