Struct WorkerRegistrar
pub struct WorkerRegistrar<W, CODEC = Bincode>{ /* private fields */ }
Expand description
A Worker Registrar.
Implementations§
§impl<W, CODEC> WorkerRegistrar<W, CODEC>
impl<W, CODEC> WorkerRegistrar<W, CODEC>
pub 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.
pub fn register(&self)where
CODEC: Codec,
<W as Worker>::Input: Serialize + for<'de> Deserialize<'de>,
<W as Worker>::Output: Serialize + for<'de> Deserialize<'de>,
pub fn register(&self)where
CODEC: Codec,
<W as Worker>::Input: Serialize + for<'de> Deserialize<'de>,
<W as Worker>::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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoPropValue<Option<T>> for T
impl<T> IntoPropValue<Option<T>> for T
Source§fn into_prop_value(self) -> Option<T>
fn into_prop_value(self) -> Option<T>
Convert
self
to a value of a Properties
struct.Source§impl<T> IntoPropValue<T> for T
impl<T> IntoPropValue<T> for T
Source§fn into_prop_value(self) -> T
fn into_prop_value(self) -> T
Convert
self
to a value of a Properties
struct.