Struct bolic_network::hub::event::AsyncSpawner
source · pub struct AsyncSpawner(pub Handle);Expand description
Handle used by Driver to spawn an async task (tokio-based).
Tuple Fields§
§0: HandleImplementations§
source§impl AsyncSpawner
impl AsyncSpawner
pub fn spawn<F: Future<Output = ()> + Send + 'static>( &self, fut: F ) -> JoinHandle<()>
pub fn spawn_with_task_handle<F: Future<Output = ()> + Send + 'static>( &self, fut: F ) -> TaskHandle
Trait Implementations§
source§impl Clone for AsyncSpawner
impl Clone for AsyncSpawner
source§fn clone(&self) -> AsyncSpawner
fn clone(&self) -> AsyncSpawner
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 moreAuto Trait Implementations§
impl Freeze for AsyncSpawner
impl !RefUnwindSafe for AsyncSpawner
impl Send for AsyncSpawner
impl Sync for AsyncSpawner
impl Unpin for AsyncSpawner
impl !UnwindSafe for AsyncSpawner
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