pub struct TaskManager<T>{
pub all_tasks: HashSet<T>,
pub working_tasks: HashSet<T>,
pub success_tasks: HashSet<T>,
pub failed_tasks: HashSet<T>,
pub revoking_tasks: HashSet<T>,
}Expand description
Thread-safe.
Everything is public, so hash functions and initial capacity can be customized.
Fields§
§all_tasks: HashSet<T>All tasks that have launched
working_tasks: HashSet<T>Tasks on execution. Usually more contention.
success_tasks: HashSet<T>Succeeded tasks.
failed_tasks: HashSet<T>Failed tasks.
revoking_tasks: HashSet<T>Tasks that is going to be revoked. Just for revoke_task_block.
Implementations§
Trait Implementations§
Source§impl<T> Debug for TaskManager<T>
impl<T> Debug for TaskManager<T>
Auto Trait Implementations§
impl<T> !Freeze for TaskManager<T>
impl<T> RefUnwindSafe for TaskManager<T>
impl<T> Send for TaskManager<T>where
T: Send,
impl<T> Sync for TaskManager<T>where
T: Sync,
impl<T> Unpin for TaskManager<T>
impl<T> UnwindSafe for TaskManager<T>where
T: RefUnwindSafe,
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