Struct async_scoped::spawner::use_tokio::Tokio
source · pub struct Tokio;
Trait Implementations§
source§impl<T: Send + 'static> FuncSpawner<T> for Tokio
impl<T: Send + 'static> FuncSpawner<T> for Tokio
type FutureOutput = Result<T, JoinError>
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 Tokio
impl<T: Send + 'static> Spawner<T> for Tokio
type FutureOutput = Result<T, JoinError>
type SpawnHandle = JoinHandle<T>
fn spawn<F: Future<Output = T> + Send + 'static>( &self, f: F ) -> Self::SpawnHandle
Auto Trait Implementations§
impl RefUnwindSafe for Tokio
impl Send for Tokio
impl Sync for Tokio
impl Unpin for Tokio
impl UnwindSafe for Tokio
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