pub struct ExecutionServicesShutdownReport {
pub blocking: ShutdownReport,
pub cpu: ShutdownReport,
pub tokio_blocking: ShutdownReport,
pub io: ShutdownReport,
}Expand description
Aggregate report returned by super::ExecutionServices::shutdown_now.
Fields§
§blocking: ShutdownReportShutdown report for the blocking executor domain.
cpu: ShutdownReportShutdown report for the CPU executor domain.
tokio_blocking: ShutdownReportShutdown report for the Tokio blocking executor domain.
io: ShutdownReportShutdown report for the Tokio async IO executor domain.
Implementations§
Source§impl ExecutionServicesShutdownReport
impl ExecutionServicesShutdownReport
Sourcepub const fn total_queued(&self) -> usize
pub const fn total_queued(&self) -> usize
Returns the total queued task count across all execution domains.
§Returns
The sum of every domain’s queued-task count.
Sourcepub const fn total_running(&self) -> usize
pub const fn total_running(&self) -> usize
Returns the total running task count across all execution domains.
§Returns
The sum of every domain’s running-task count.
Sourcepub const fn total_cancelled(&self) -> usize
pub const fn total_cancelled(&self) -> usize
Returns the total cancellation count across all execution domains.
§Returns
The sum of every domain’s cancelled-task count.
Trait Implementations§
Source§impl Clone for ExecutionServicesShutdownReport
impl Clone for ExecutionServicesShutdownReport
Source§fn clone(&self) -> ExecutionServicesShutdownReport
fn clone(&self) -> ExecutionServicesShutdownReport
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Default for ExecutionServicesShutdownReport
impl Default for ExecutionServicesShutdownReport
Source§fn default() -> ExecutionServicesShutdownReport
fn default() -> ExecutionServicesShutdownReport
Returns the “default value” for a type. Read more
Source§impl PartialEq for ExecutionServicesShutdownReport
impl PartialEq for ExecutionServicesShutdownReport
Source§fn eq(&self, other: &ExecutionServicesShutdownReport) -> bool
fn eq(&self, other: &ExecutionServicesShutdownReport) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for ExecutionServicesShutdownReport
impl Eq for ExecutionServicesShutdownReport
impl StructuralPartialEq for ExecutionServicesShutdownReport
Auto Trait Implementations§
impl Freeze for ExecutionServicesShutdownReport
impl RefUnwindSafe for ExecutionServicesShutdownReport
impl Send for ExecutionServicesShutdownReport
impl Sync for ExecutionServicesShutdownReport
impl Unpin for ExecutionServicesShutdownReport
impl UnsafeUnpin for ExecutionServicesShutdownReport
impl UnwindSafe for ExecutionServicesShutdownReport
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more