pub struct TaskSupervisor { /* private fields */ }Implementations§
Source§impl TaskSupervisor
impl TaskSupervisor
pub fn snapshot(&self, class: TaskClass) -> TaskClassSnapshot
pub fn active_total(&self) -> usize
pub fn active_scoped(&self) -> usize
Sourcepub async fn wait_empty(&self)
pub async fn wait_empty(&self)
Wait until this RuntimeContext’s accounting scope owns no supervised tasks. The notification is armed before observation so the final task cannot exit between the check and await.
pub fn drain_terminal_reports(&self) -> Vec<TaskTerminalReport>
pub fn dropped_terminal_reports(&self) -> u64
Trait Implementations§
Source§impl Clone for TaskSupervisor
impl Clone for TaskSupervisor
Source§fn clone(&self) -> TaskSupervisor
fn clone(&self) -> TaskSupervisor
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 TaskSupervisor
impl RefUnwindSafe for TaskSupervisor
impl Send for TaskSupervisor
impl Sync for TaskSupervisor
impl Unpin for TaskSupervisor
impl UnsafeUnpin for TaskSupervisor
impl UnwindSafe for TaskSupervisor
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