pub struct WorkerRegistrar<W, CODEC = Bincode>{ /* private fields */ }
Expand description
A Worker Registrar.
Implementations§
Source§impl<W, CODEC> WorkerRegistrar<W, CODEC>
impl<W, CODEC> WorkerRegistrar<W, CODEC>
Sourcepub fn encoding<C>(&self) -> WorkerRegistrar<W, C>where
C: Codec,
pub fn encoding<C>(&self) -> WorkerRegistrar<W, C>where
C: Codec,
Sets a new message encoding.
Sourcepub fn register(&self)where
CODEC: Codec,
W::Input: Serialize + for<'de> Deserialize<'de>,
W::Output: Serialize + for<'de> Deserialize<'de>,
pub fn register(&self)where
CODEC: Codec,
W::Input: Serialize + for<'de> Deserialize<'de>,
W::Output: Serialize + for<'de> Deserialize<'de>,
Executes an worker in the current environment.
Trait Implementations§
Auto Trait Implementations§
impl<W, CODEC> Freeze for WorkerRegistrar<W, CODEC>
impl<W, CODEC> RefUnwindSafe for WorkerRegistrar<W, CODEC>where
W: RefUnwindSafe,
CODEC: RefUnwindSafe,
impl<W, CODEC> Send for WorkerRegistrar<W, CODEC>
impl<W, CODEC> Sync for WorkerRegistrar<W, CODEC>
impl<W, CODEC> Unpin for WorkerRegistrar<W, CODEC>
impl<W, CODEC> UnwindSafe for WorkerRegistrar<W, CODEC>where
W: UnwindSafe,
CODEC: 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