pub struct RegisteredWorkers;Expand description
A worker factory that can build any worker built with
register_workers.
register_workers! {
MyWorker1,
MyWorker2,
}
// Construct a worker host for these workers.
let (host, runner) = mesh_worker::worker_host();
std::thread::spawn(|| block_on(runner.run(RegisteredWorkers)));Trait Implementations§
Source§impl Clone for RegisteredWorkers
impl Clone for RegisteredWorkers
Source§fn clone(&self) -> RegisteredWorkers
fn clone(&self) -> RegisteredWorkers
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 moreSource§impl Debug for RegisteredWorkers
impl Debug for RegisteredWorkers
Source§impl WorkerFactory for RegisteredWorkers
impl WorkerFactory for RegisteredWorkers
Auto Trait Implementations§
impl Freeze for RegisteredWorkers
impl RefUnwindSafe for RegisteredWorkers
impl Send for RegisteredWorkers
impl Sync for RegisteredWorkers
impl Unpin for RegisteredWorkers
impl UnwindSafe for RegisteredWorkers
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