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