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§
Source§impl<Backend: Clone, Svc: Clone> Clone for WorkerService<Backend, Svc>
impl<Backend: Clone, Svc: Clone> Clone for WorkerService<Backend, Svc>
Source§fn clone(&self) -> WorkerService<Backend, Svc>
fn clone(&self) -> WorkerService<Backend, Svc>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto 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> 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