pub struct DispatcherMetrics {
pub notifications_drained: AtomicU64,
pub events_dispatched: AtomicU64,
pub events_dropped: AtomicU64,
pub dispatch_cycles: AtomicU64,
pub idle_cycles: AtomicU64,
pub max_dispatch_latency_ns: AtomicU64,
}Expand description
Atomic counters for monitoring the dispatcher.
Fields§
§notifications_drained: AtomicU64Total notifications drained from Ring 0.
events_dispatched: AtomicU64Total events dispatched to subscribers.
events_dropped: AtomicU64Total events dropped (resolve failure or no receivers).
dispatch_cycles: AtomicU64Total dispatch cycles.
idle_cycles: AtomicU64Total idle cycles (nothing to dispatch).
max_dispatch_latency_ns: AtomicU64Maximum dispatch latency observed (nanoseconds).
Implementations§
Source§impl DispatcherMetrics
impl DispatcherMetrics
Sourcepub fn notifications_drained(&self) -> u64
pub fn notifications_drained(&self) -> u64
Returns total notifications drained.
Sourcepub fn events_dispatched(&self) -> u64
pub fn events_dispatched(&self) -> u64
Returns total events dispatched.
Sourcepub fn events_dropped(&self) -> u64
pub fn events_dropped(&self) -> u64
Returns total events dropped.
Sourcepub fn dispatch_cycles(&self) -> u64
pub fn dispatch_cycles(&self) -> u64
Returns total dispatch cycles.
Sourcepub fn idle_cycles(&self) -> u64
pub fn idle_cycles(&self) -> u64
Returns total idle cycles.
Trait Implementations§
Source§impl Debug for DispatcherMetrics
impl Debug for DispatcherMetrics
Source§impl Default for DispatcherMetrics
impl Default for DispatcherMetrics
Source§fn default() -> DispatcherMetrics
fn default() -> DispatcherMetrics
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !Freeze for DispatcherMetrics
impl RefUnwindSafe for DispatcherMetrics
impl Send for DispatcherMetrics
impl Sync for DispatcherMetrics
impl Unpin for DispatcherMetrics
impl UnsafeUnpin for DispatcherMetrics
impl UnwindSafe for DispatcherMetrics
Blanket Implementations§
§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
§type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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§impl<T> LayoutRaw for T
impl<T> LayoutRaw for T
§fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
Returns the layout of the type.