Struct agnostic_lite::AsyncStdSpawner
source · pub struct AsyncStdSpawner;Available on crate feature
async-std only.Expand description
A AsyncSpawner that uses the async-std runtime.
Trait Implementations§
source§impl AsyncSpawner for AsyncStdSpawner
impl AsyncSpawner for AsyncStdSpawner
§type JoinHandle<F> = JoinHandle<F>
where
F: Send + 'static
type JoinHandle<F> = JoinHandle<F> where F: Send + '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§impl Clone for AsyncStdSpawner
impl Clone for AsyncStdSpawner
source§fn clone(&self) -> AsyncStdSpawner
fn clone(&self) -> AsyncStdSpawner
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 AsyncStdSpawner
impl Debug for AsyncStdSpawner
impl Copy for AsyncStdSpawner
Auto Trait Implementations§
impl Freeze for AsyncStdSpawner
impl RefUnwindSafe for AsyncStdSpawner
impl Send for AsyncStdSpawner
impl Sync for AsyncStdSpawner
impl Unpin for AsyncStdSpawner
impl UnwindSafe for AsyncStdSpawner
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