pub struct WorkerService<Backend, Svc> {
pub backend: Backend,
pub service: Svc,
}Expand description
A worker service composed of a backend and a service
Fields§
§backend: BackendThe backend for the worker
service: SvcThe service that processes tasks
Trait Implementations§
Auto Trait Implementations§
impl<Backend, Svc> Freeze for WorkerService<Backend, Svc>
impl<Backend, Svc> RefUnwindSafe for WorkerService<Backend, Svc>where
Backend: RefUnwindSafe,
Svc: RefUnwindSafe,
impl<Backend, Svc> Send for WorkerService<Backend, Svc>
impl<Backend, Svc> Sync for WorkerService<Backend, Svc>
impl<Backend, Svc> Unpin for WorkerService<Backend, Svc>
impl<Backend, Svc> UnsafeUnpin for WorkerService<Backend, Svc>where
Backend: UnsafeUnpin,
Svc: UnsafeUnpin,
impl<Backend, Svc> UnwindSafe for WorkerService<Backend, Svc>where
Backend: UnwindSafe,
Svc: 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