pub struct AsyncStd;
Trait Implementations§
Source§impl<T: Send + 'static> FuncSpawner<T> for AsyncStd
impl<T: Send + 'static> FuncSpawner<T> for AsyncStd
type FutureOutput = T
type SpawnHandle = JoinHandle<T>
fn spawn_func<F: FnOnce() -> T + Send + 'static>( &self, f: F, ) -> Self::SpawnHandle
Source§impl<T: Send + 'static> Spawner<T> for AsyncStd
impl<T: Send + 'static> Spawner<T> for AsyncStd
type FutureOutput = T
type SpawnHandle = JoinHandle<T>
fn spawn<F: Future<Output = T> + Send + 'static>( &self, f: F, ) -> Self::SpawnHandle
Auto Trait Implementations§
impl Freeze for AsyncStd
impl RefUnwindSafe for AsyncStd
impl Send for AsyncStd
impl Sync for AsyncStd
impl Unpin for AsyncStd
impl UnwindSafe for AsyncStd
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