Struct agnostic_lite::async_std::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 AsyncAfterSpawner for AsyncStdSpawner
impl AsyncAfterSpawner for AsyncStdSpawner
§type JoinError = Infallible
type JoinError = Infallible
Available on crate feature
time only.The join error type for the join handle
§type JoinHandle<F> = AsyncStdAfterHandle<F>
where
F: Send + 'static
type JoinHandle<F> = AsyncStdAfterHandle<F> where F: Send + 'static
Available on crate feature
time only.The handle returned by the spawner when a future is spawned.
source§fn spawn_after<F>(duration: Duration, future: F) -> Self::JoinHandle<F::Output>
fn spawn_after<F>(duration: Duration, future: F) -> Self::JoinHandle<F::Output>
Available on crate feature
time only.Spawn a future onto the runtime and run the given future after the given duration
source§fn spawn_after_at<F>(instant: Instant, future: F) -> Self::JoinHandle<F::Output>
fn spawn_after_at<F>(instant: Instant, future: F) -> Self::JoinHandle<F::Output>
Available on crate feature
time only.Spawn a future onto the runtime and run the given future after reach the given instant
source§fn spawn_after_detach<F>(duration: Duration, future: F)
fn spawn_after_detach<F>(duration: Duration, future: F)
Available on crate feature
time only.Spawn and detach a future onto the runtime and run the given future after the given duration
source§impl AsyncBlockingSpawner for AsyncStdSpawner
impl AsyncBlockingSpawner for AsyncStdSpawner
§type JoinHandle<R> = JoinHandle<R>
where
R: Send + 'static
type JoinHandle<R> = JoinHandle<R> where R: Send + 'static
The join handle type for blocking tasks
source§fn spawn_blocking<F, R>(f: F) -> Self::JoinHandle<R>
fn spawn_blocking<F, R>(f: F) -> Self::JoinHandle<R>
Spawn a blocking function onto the runtime
source§impl AsyncLocalAfterSpawner for AsyncStdSpawner
impl AsyncLocalAfterSpawner for AsyncStdSpawner
§type JoinError = Infallible
type JoinError = Infallible
Available on crate feature
time only.The join error type for the join handle
§type JoinHandle<F> = AsyncStdAfterHandle<F>
where
F: 'static
type JoinHandle<F> = AsyncStdAfterHandle<F> where F: 'static
Available on crate feature
time only.The handle returned by the spawner when a future is spawned.
source§fn spawn_local_after<F>(
duration: Duration,
future: F
) -> Self::JoinHandle<F::Output>
fn spawn_local_after<F>( duration: Duration, future: F ) -> Self::JoinHandle<F::Output>
Available on crate feature
time only.Spawn a future onto the runtime and run the given future after the given duration
source§fn spawn_local_after_at<F>(
instant: Instant,
future: F
) -> Self::JoinHandle<F::Output>
fn spawn_local_after_at<F>( instant: Instant, future: F ) -> Self::JoinHandle<F::Output>
Available on crate feature
time only.Spawn a future onto the runtime and run the given future after reach the given instant
source§fn spawn_local_after_detach<F>(duration: Duration, future: F)
fn spawn_local_after_detach<F>(duration: Duration, future: F)
Available on crate feature
time only.Spawn and detach a future onto the runtime and run the given future after the given duration
source§impl AsyncLocalSpawner for AsyncStdSpawner
impl AsyncLocalSpawner for AsyncStdSpawner
§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_local<F>(future: F) -> Self::JoinHandle<F::Output>
fn spawn_local<F>(future: F) -> Self::JoinHandle<F::Output>
Spawn a future.
source§fn spawn_local_detach<F>(future: F)
fn spawn_local_detach<F>(future: F)
Spawn a future and detach it.
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