pub struct SpinOnceResult {
pub subscriptions_processed: usize,
pub timers_fired: usize,
pub services_handled: usize,
pub subscription_errors: usize,
pub service_errors: usize,
pub setup_errors: usize,
}Expand description
Result of a single spin iteration
Contains counts of how many items were processed during spin_once(),
plus error counts for transport failures that would otherwise be silently dropped.
Fields§
§subscriptions_processed: usizeNumber of subscription callbacks invoked
timers_fired: usizeNumber of timers that fired
services_handled: usizeNumber of service requests handled
subscription_errors: usizeNumber of subscription processing errors (e.g., BufferTooSmall, MessageTooLarge)
service_errors: usizeNumber of service processing errors (e.g., BufferTooSmall)
setup_errors: usizeAn executor-level entity that
waited for a node and could not be opened when the pass ran it (the
/diagnostics reporter of an image with no node; see
Executor::open_pending_on_configured_name). spin and spin_some
return that error; a bare spin_once counts it here.
Implementations§
Source§impl SpinOnceResult
impl SpinOnceResult
Sourcepub const fn any_work(&self) -> bool
pub const fn any_work(&self) -> bool
Check if any work was done (errors are not counted as work)
Sourcepub const fn total(&self) -> usize
pub const fn total(&self) -> usize
Total number of callbacks successfully invoked (errors excluded)
Sourcepub const fn any_errors(&self) -> bool
pub const fn any_errors(&self) -> bool
Check if any errors occurred during this spin iteration
Sourcepub const fn total_errors(&self) -> usize
pub const fn total_errors(&self) -> usize
Total number of errors across all handle types
Trait Implementations§
Source§impl Clone for SpinOnceResult
impl Clone for SpinOnceResult
Source§fn clone(&self) -> SpinOnceResult
fn clone(&self) -> SpinOnceResult
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more