pub struct QueueHandle<K: QueueKey> { /* private fields */ }Implementations§
Source§impl<K: QueueKey> QueueHandle<K>
impl<K: QueueKey> QueueHandle<K>
pub fn spawn<T, F>(&self, fut: F) -> JoinHandle<T, K> ⓘwhere
T: 'static,
F: Future<Output = T> + 'static,
Sourcepub fn spawn_detached<F>(&self, fut: F)where
F: Future + 'static,
pub fn spawn_detached<F>(&self, fut: F)where
F: Future + 'static,
Spawn a fire-and-forget task. No JoinHandle or JoinState is allocated,
making this cheaper than spawn when the caller doesn’t need the result.
Auto Trait Implementations§
impl<K> Freeze for QueueHandle<K>where
K: Freeze,
impl<K> !RefUnwindSafe for QueueHandle<K>
impl<K> !Send for QueueHandle<K>
impl<K> !Sync for QueueHandle<K>
impl<K> Unpin for QueueHandle<K>where
K: Unpin,
impl<K> !UnwindSafe for QueueHandle<K>
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