pub struct Worker { /* private fields */ }Expand description
An engine on its own thread. The engine is loaded on the first request (and again after a failed load), so creating a worker is cheap. Requests run one at a time, in order.
Implementations§
Auto Trait Implementations§
impl Forget for Worker
impl Freeze for Worker
impl Move for Worker
impl RefUnwindSafe for Workerwhere
Sender<Job>: RefUnwindSafe,
impl Send for Worker
impl Sync for Worker
impl Unpin for Worker
impl UnsafeUnpin for Workerwhere
*mut Counter<Channel<Job>>: UnsafeUnpin,
*mut Counter<Channel<Job>>: UnsafeUnpin,
*mut Counter<Channel<Job>>: UnsafeUnpin,
impl UnwindSafe for Workerwhere
Sender<Job>: UnwindSafe,
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