Struct gloo_worker::oneshot::OneshotRegistrar
source · pub struct OneshotRegistrar<T, CODEC = Bincode>where
T: Oneshot + 'static,
CODEC: Codec + 'static,{ /* private fields */ }
Expand description
A registrar for oneshot workers.
Implementations§
source§impl<N, CODEC> OneshotRegistrar<N, CODEC>where
N: Oneshot + 'static,
CODEC: Codec + 'static,
impl<N, CODEC> OneshotRegistrar<N, CODEC>where N: Oneshot + 'static, CODEC: Codec + 'static,
sourcepub fn encoding<C>(&self) -> OneshotRegistrar<N, C>where
C: Codec + 'static,
pub fn encoding<C>(&self) -> OneshotRegistrar<N, C>where C: Codec + 'static,
Sets the encoding.
sourcepub fn register(&self)where
N::Input: Serialize + for<'de> Deserialize<'de>,
N::Output: Serialize + for<'de> Deserialize<'de>,
pub fn register(&self)where N::Input: Serialize + for<'de> Deserialize<'de>, N::Output: Serialize + for<'de> Deserialize<'de>,
Registers the worker.
Trait Implementations§
Auto Trait Implementations§
impl<T, CODEC = Bincode> !RefUnwindSafe for OneshotRegistrar<T, CODEC>
impl<T, CODEC = Bincode> !Send for OneshotRegistrar<T, CODEC>
impl<T, CODEC = Bincode> !Sync for OneshotRegistrar<T, CODEC>
impl<T, CODEC> Unpin for OneshotRegistrar<T, CODEC>where CODEC: Unpin,
impl<T, CODEC = Bincode> !UnwindSafe for OneshotRegistrar<T, CODEC>
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