pub struct TimeoutStats {
pub total_operations: AtomicU64,
pub completed: AtomicU64,
pub timeouts: AtomicU64,
pub cancellations: AtomicU64,
}Expand description
Statistics for timeout tracking.
Fields§
§total_operations: AtomicU64Total operations.
completed: AtomicU64Successful completions.
timeouts: AtomicU64Timeouts.
cancellations: AtomicU64Cancellations.
Implementations§
Source§impl TimeoutStats
impl TimeoutStats
Sourcepub fn record_completed(&self)
pub fn record_completed(&self)
Record a completion.
Sourcepub fn record_timeout(&self)
pub fn record_timeout(&self)
Record a timeout.
Sourcepub fn record_cancellation(&self)
pub fn record_cancellation(&self)
Record a cancellation.
Sourcepub fn timeout_rate(&self) -> f64
pub fn timeout_rate(&self) -> f64
Get timeout rate.
Sourcepub fn snapshot(&self) -> TimeoutStatsSnapshot
pub fn snapshot(&self) -> TimeoutStatsSnapshot
Get snapshot of stats.
Trait Implementations§
Source§impl Debug for TimeoutStats
impl Debug for TimeoutStats
Source§impl Default for TimeoutStats
impl Default for TimeoutStats
Source§fn default() -> TimeoutStats
fn default() -> TimeoutStats
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !Freeze for TimeoutStats
impl RefUnwindSafe for TimeoutStats
impl Send for TimeoutStats
impl Sync for TimeoutStats
impl Unpin for TimeoutStats
impl UnwindSafe for TimeoutStats
Blanket Implementations§
Source§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
Source§type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
Source§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
Source§impl<F, W, T, D> Deserialize<With<T, W>, D> for F
impl<F, W, T, D> Deserialize<With<T, W>, D> for F
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> LayoutRaw for T
impl<T> LayoutRaw for T
Source§fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
Gets the layout of the type.