Struct gloo_worker::reactor::ReactorSpawner
source · pub struct ReactorSpawner<R, CODEC = Bincode>{ /* private fields */ }
Expand description
A spawner to create oneshot workers.
Implementations§
source§impl<R, CODEC> ReactorSpawner<R, CODEC>
impl<R, CODEC> ReactorSpawner<R, CODEC>
sourcepub const fn encoding<C>(&self) -> ReactorSpawner<R, C>where
C: Codec,
pub const fn encoding<C>(&self) -> ReactorSpawner<R, C>where
C: Codec,
Sets a new message encoding.
sourcepub fn spawn(self, path: &str) -> ReactorBridge<R>where
<R::Scope as ReactorScoped>::Input: Serialize + for<'de> Deserialize<'de>,
<R::Scope as ReactorScoped>::Output: Serialize + for<'de> Deserialize<'de>,
pub fn spawn(self, path: &str) -> ReactorBridge<R>where
<R::Scope as ReactorScoped>::Input: Serialize + for<'de> Deserialize<'de>,
<R::Scope as ReactorScoped>::Output: Serialize + for<'de> Deserialize<'de>,
Spawns a reactor worker.
sourcepub fn spawn_with_loader(self, loader_path: &str) -> ReactorBridge<R>where
<R::Scope as ReactorScoped>::Input: Serialize + for<'de> Deserialize<'de>,
<R::Scope as ReactorScoped>::Output: Serialize + for<'de> Deserialize<'de>,
pub fn spawn_with_loader(self, loader_path: &str) -> ReactorBridge<R>where
<R::Scope as ReactorScoped>::Input: Serialize + for<'de> Deserialize<'de>,
<R::Scope as ReactorScoped>::Output: Serialize + for<'de> Deserialize<'de>,
Spawns a Reactor Worker with a loader shim script.
Trait Implementations§
source§impl<R, CODEC> Debug for ReactorSpawner<R, CODEC>
impl<R, CODEC> Debug for ReactorSpawner<R, CODEC>
Auto Trait Implementations§
impl<R, CODEC = Bincode> !RefUnwindSafe for ReactorSpawner<R, CODEC>
impl<R, CODEC = Bincode> !Send for ReactorSpawner<R, CODEC>
impl<R, CODEC = Bincode> !Sync for ReactorSpawner<R, CODEC>
impl<R, CODEC> Unpin for ReactorSpawner<R, CODEC>where
CODEC: Unpin,
impl<R, CODEC = Bincode> !UnwindSafe for ReactorSpawner<R, 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