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