Struct gloo_worker::WorkerRegistrar
source · 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> RefUnwindSafe for WorkerRegistrar<W, CODEC>where
CODEC: RefUnwindSafe,
W: 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
CODEC: UnwindSafe,
W: 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