pub struct SpawnHandles { /* private fields */ }
Expand description
Helper type to compact holding onto multiple SpawnHandle<_>s with a single reference (at the cost of boxing). Given that spawning should be relatively not often, the allocation cost should be fine for the ergonomical trade-off.
Implementations§
Source§impl SpawnHandles
impl SpawnHandles
pub fn new() -> SpawnHandles
pub fn with<T: 'static>(self, handle: SpawnHandle<T>) -> Self
Auto Trait Implementations§
impl Freeze for SpawnHandles
impl !RefUnwindSafe for SpawnHandles
impl !Send for SpawnHandles
impl !Sync for SpawnHandles
impl Unpin for SpawnHandles
impl !UnwindSafe for SpawnHandles
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