pub struct ConditionalMetrics {
pub cas_applied_total: u64,
pub cas_mismatch_total: u64,
pub lock_acquired_total: u64,
pub lock_stale_token_rejected_total: u64,
pub lock_lease_expired_total: u64,
pub lock_not_owner_rejected_total: u64,
pub lock_lease_renewed_total: u64,
pub lock_reentrancy_limit_rejected_total: u64,
}Expand description
Conditional-write metrics.
Fields§
§cas_applied_total: u64Applied compare-and-set operations.
cas_mismatch_total: u64Compare-and-set mismatches.
lock_acquired_total: u64Lock acquisitions.
lock_stale_token_rejected_total: u64Stale lock tokens rejected.
lock_lease_expired_total: u64Lock holds expired due to lease deadline or session loss.
lock_not_owner_rejected_total: u64Lock releases/renews rejected because the caller was not the owner.
lock_lease_renewed_total: u64Lock leases renewed.
lock_reentrancy_limit_rejected_total: u64Reentrant acquires rejected by the configured limit.
Trait Implementations§
Source§impl Clone for ConditionalMetrics
impl Clone for ConditionalMetrics
Source§fn clone(&self) -> ConditionalMetrics
fn clone(&self) -> ConditionalMetrics
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 moreimpl Copy for ConditionalMetrics
Source§impl Debug for ConditionalMetrics
impl Debug for ConditionalMetrics
Source§impl Default for ConditionalMetrics
impl Default for ConditionalMetrics
Source§fn default() -> ConditionalMetrics
fn default() -> ConditionalMetrics
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ConditionalMetrics
impl<'de> Deserialize<'de> for ConditionalMetrics
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for ConditionalMetrics
Source§impl PartialEq for ConditionalMetrics
impl PartialEq for ConditionalMetrics
Source§fn eq(&self, other: &ConditionalMetrics) -> bool
fn eq(&self, other: &ConditionalMetrics) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ConditionalMetrics
impl Serialize for ConditionalMetrics
impl StructuralPartialEq for ConditionalMetrics
Auto Trait Implementations§
impl Freeze for ConditionalMetrics
impl RefUnwindSafe for ConditionalMetrics
impl Send for ConditionalMetrics
impl Sync for ConditionalMetrics
impl Unpin for ConditionalMetrics
impl UnsafeUnpin for ConditionalMetrics
impl UnwindSafe for ConditionalMetrics
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.