struct Inner {
tasks: Mutex<HashMap<usize, TaskHandler>>,
next_id: AtomicUsize,
executor: Executor,
}Expand description
Shared state of a TaskGroup. Held behind an Arc so each task can
keep a Weak reference back to the group and remove itself on
completion, without forcing callers to wrap the group in an Arc.
Fields§
§tasks: Mutex<HashMap<usize, TaskHandler>>§next_id: AtomicUsize§executor: ExecutorImplementations§
Auto Trait Implementations§
impl !Freeze for Inner
impl !RefUnwindSafe for Inner
impl Send for Inner
impl Sync for Inner
impl Unpin for Inner
impl UnsafeUnpin for Inner
impl !UnwindSafe for Inner
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