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