pub struct SingleWorkerTimeout<T: Send> { /* private fields */ }Implementations§
Source§impl<T> SingleWorkerTimeout<T>where
T: 'static + Send,
impl<T> SingleWorkerTimeout<T>where
T: 'static + Send,
pub fn new<C, F>( max_jobs_queue: usize, context: C, handler: F, timeout: Duration, ) -> SingleWorkerTimeout<T>
pub fn send(sender: &MessageSender<T>, job: T) -> Result<(), QueueError<T>>
pub fn clone_sender(&self) -> MessageSender<T>
pub fn stop(&self)
pub fn join(&mut self)
Auto Trait Implementations§
impl<T> Freeze for SingleWorkerTimeout<T>
impl<T> !RefUnwindSafe for SingleWorkerTimeout<T>
impl<T> Send for SingleWorkerTimeout<T>
impl<T> Sync for SingleWorkerTimeout<T>
impl<T> Unpin for SingleWorkerTimeout<T>
impl<T> !UnwindSafe for SingleWorkerTimeout<T>
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