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§
Sourcefn get_pool(&self) -> Result<MaybeThreadPool, LadduError>
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.