Struct agnostic_lite::WasmLocalSpawner
source · pub struct WasmLocalSpawner;Available on crate feature
wasm only.Expand description
A AsyncLocalSpawner that uses the wasm-bindgen-futures runtime.
Trait Implementations§
source§impl AsyncLocalSpawner for WasmLocalSpawner
impl AsyncLocalSpawner for WasmLocalSpawner
§type JoinHandle<F> = WasmLocalJoinHandle<F>
where
F: 'static
type JoinHandle<F> = WasmLocalJoinHandle<F> where F: 'static
The handle returned by the spawner when a future is spawned.
source§fn spawn<F>(future: F) -> Self::JoinHandle<F::Output>
fn spawn<F>(future: F) -> Self::JoinHandle<F::Output>
Spawn a future.
source§fn spawn_detach<F>(future: F)
fn spawn_detach<F>(future: F)
Spawn a future and detach it.
source§impl Clone for WasmLocalSpawner
impl Clone for WasmLocalSpawner
source§fn clone(&self) -> WasmLocalSpawner
fn clone(&self) -> WasmLocalSpawner
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for WasmLocalSpawner
impl Debug for WasmLocalSpawner
impl Copy for WasmLocalSpawner
Auto Trait Implementations§
impl Freeze for WasmLocalSpawner
impl RefUnwindSafe for WasmLocalSpawner
impl Send for WasmLocalSpawner
impl Sync for WasmLocalSpawner
impl Unpin for WasmLocalSpawner
impl UnwindSafe for WasmLocalSpawner
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