pub struct ShutdownReport {
pub queued: usize,
pub running: usize,
pub cancelled: usize,
}Expand description
Summary returned by an immediate executor-service shutdown request.
The report is intentionally count-based. In a generic Rust executor service, pending tasks may have different result and error types, so returning a strongly typed list of unstarted tasks is not generally meaningful.
Fields§
§queued: usizeNumber of tasks that were still queued when shutdown was requested.
running: usizeNumber of tasks that were running when shutdown was requested.
cancelled: usizeNumber of tasks for which cancellation or abort was requested.
Implementations§
Source§impl ShutdownReport
impl ShutdownReport
Trait Implementations§
Source§impl Clone for ShutdownReport
impl Clone for ShutdownReport
Source§fn clone(&self) -> ShutdownReport
fn clone(&self) -> ShutdownReport
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 Debug for ShutdownReport
impl Debug for ShutdownReport
Source§impl Default for ShutdownReport
impl Default for ShutdownReport
Source§fn default() -> ShutdownReport
fn default() -> ShutdownReport
Returns the “default value” for a type. Read more
Source§impl PartialEq for ShutdownReport
impl PartialEq for ShutdownReport
impl Copy for ShutdownReport
impl Eq for ShutdownReport
impl StructuralPartialEq for ShutdownReport
Auto Trait Implementations§
impl Freeze for ShutdownReport
impl RefUnwindSafe for ShutdownReport
impl Send for ShutdownReport
impl Sync for ShutdownReport
impl Unpin for ShutdownReport
impl UnsafeUnpin for ShutdownReport
impl UnwindSafe for ShutdownReport
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