pub struct StopReport {
pub queued: usize,
pub running: usize,
pub cancelled: usize,
}Expand description
Summary returned by an immediate executor-service stop 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 stop was requested.
running: usizeNumber of tasks that were running when stop was requested.
cancelled: usizeNumber of tasks for which cancellation or abort was requested.
Implementations§
Trait Implementations§
Source§impl Clone for StopReport
impl Clone for StopReport
Source§fn clone(&self) -> StopReport
fn clone(&self) -> StopReport
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 moreSource§impl Debug for StopReport
impl Debug for StopReport
Source§impl Default for StopReport
impl Default for StopReport
Source§fn default() -> StopReport
fn default() -> StopReport
Returns the “default value” for a type. Read more
Source§impl PartialEq for StopReport
impl PartialEq for StopReport
Source§fn eq(&self, other: &StopReport) -> bool
fn eq(&self, other: &StopReport) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for StopReport
impl Eq for StopReport
impl StructuralPartialEq for StopReport
Auto Trait Implementations§
impl Freeze for StopReport
impl RefUnwindSafe for StopReport
impl Send for StopReport
impl Sync for StopReport
impl Unpin for StopReport
impl UnsafeUnpin for StopReport
impl UnwindSafe for StopReport
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