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