pub struct ThreadPool { /* private fields */ }Implementations§
Source§impl ThreadPool
 
impl ThreadPool
pub fn async_execute<F>(
    &self,
    job: F,
) -> Result<(), SendError<Box<dyn RecoverableFunction<Output = ()>>>>where
    F: AsyncRecoverableFunction,
pub fn async_execute_with_catch<F, E>(
    &self,
    job: F,
    handle_error: E,
) -> Result<(), SendError<Box<dyn RecoverableFunction<Output = ()>>>>where
    F: AsyncRecoverableFunction,
    E: AsyncErrorHandlerFunction,
pub fn async_execute_with_catch_finally<F, E, L>( &self, job: F, handle_error: E, finally: L, ) -> Result<(), SendError<Box<dyn RecoverableFunction<Output = ()>>>>
Source§impl ThreadPool
 
impl ThreadPool
pub fn new(size: usize) -> ThreadPool
pub fn execute<F>(
    &self,
    job: F,
) -> Result<(), SendError<Box<dyn RecoverableFunction<Output = ()>>>>where
    F: RecoverableFunction,
pub fn execute_with_catch<F, E>(
    &self,
    job: F,
    handle_error: E,
) -> Result<(), SendError<Box<dyn RecoverableFunction<Output = ()>>>>where
    F: RecoverableFunction,
    E: ErrorHandlerFunction,
pub fn execute_with_catch_finally<F, E, L>( &self, job: F, handle_error: E, finally: L, ) -> Result<(), SendError<Box<dyn RecoverableFunction<Output = ()>>>>
Auto Trait Implementations§
impl Freeze for ThreadPool
impl RefUnwindSafe for ThreadPool
impl Send for ThreadPool
impl Sync for ThreadPool
impl Unpin for ThreadPool
impl UnwindSafe for ThreadPool
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
    T: ?Sized,
 
impl<T> BorrowMut<T> for Twhere
    T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
 
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more