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