pub struct WorkerContext<Ctx>{
pub worker_id: usize,
pub queue: Arc<WorkQueue>,
pub client: Arc<Client>,
pub item: Item,
/* private fields */
}
Fields§
§worker_id: usize
§queue: Arc<WorkQueue>
§client: Arc<Client>
§item: Item
Implementations§
Auto Trait Implementations§
impl<Ctx> Freeze for WorkerContext<Ctx>where
Ctx: Freeze,
impl<Ctx> RefUnwindSafe for WorkerContext<Ctx>where
Ctx: RefUnwindSafe,
impl<Ctx> Send for WorkerContext<Ctx>
impl<Ctx> Sync for WorkerContext<Ctx>
impl<Ctx> Unpin for WorkerContext<Ctx>where
Ctx: Unpin,
impl<Ctx> UnwindSafe for WorkerContext<Ctx>where
Ctx: 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