pub struct Spawner<'a, R>(/* private fields */)
where
R: RawMutex;
Expand description
Spawner for an AllocExecutor
This can be cloned and passed to an async function to allow it to spawn more tasks.
Implementations§
Source§impl<'a, R> Spawner<'a, R>where
R: RawMutex,
impl<'a, R> Spawner<'a, R>where
R: RawMutex,
Trait Implementations§
Source§impl<'a, R> From<LocalSpawner<'a, R>> for Spawner<'a, R>where
R: RawMutex,
impl<'a, R> From<LocalSpawner<'a, R>> for Spawner<'a, R>where
R: RawMutex,
Source§fn from(other: LocalSpawner<'a, R>) -> Self
fn from(other: LocalSpawner<'a, R>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<'a, R> Freeze for Spawner<'a, R>
impl<'a, R> !RefUnwindSafe for Spawner<'a, R>
impl<'a, R> Send for Spawner<'a, R>
impl<'a, R> Sync for Spawner<'a, R>
impl<'a, R> Unpin for Spawner<'a, R>
impl<'a, R> !UnwindSafe for Spawner<'a, R>
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