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 Freeze for Tokio
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