Struct Diagnostic Count
Generated from cargo doc --no-deps -p nemo-relay -p nemo-relay-adaptive -p nemo-relay-pii-redaction -p nemo-relay-ffi -p nemo-relay-types -p nemo-relay-plugin -p nemo-relay-worker-proto -p nemo-relay-worker.
pub struct DiagnosticCount {
pub value: DiagnosticNumber,
pub saturated: bool,
}
Magnitude of an occurrence or loss counter, including overflow visibility.
Fields
value: DiagnosticNumber
Exact count unless saturation has occurred.
saturated: bool
Whether an overflowing increment made the value a lower bound.
Implementations
impl DiagnosticCount
impl DiagnosticCount
add
pub fn add(&mut self, amount: u64)
Add occurrences, preserving overflow as an explicit lower-bound marker.
Trait Implementations
impl Clone for DiagnosticCount
impl Clone for DiagnosticCount
clone
fn clone(&self) -> DiagnosticCount
clone_from
fn clone_from(&mut self, source: &Self)
impl Debug for DiagnosticCount
impl Debug for DiagnosticCount
fmt
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl Default for DiagnosticCount
impl Default for DiagnosticCount
default
fn default() -> DiagnosticCount
impl<'de> Deserialize<'de> for DiagnosticCount
impl<'de> Deserialize<'de> for DiagnosticCount
deserialize
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
impl PartialEq for DiagnosticCount
impl PartialEq for DiagnosticCount
eq
fn eq(&self, other: &DiagnosticCount) -> bool
ne
fn ne(&self, other: &Rhs) -> bool
impl Serialize for DiagnosticCount
impl Serialize for DiagnosticCount
serialize
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>where
__S: Serializer,
impl Copy for DiagnosticCount
impl Copy for DiagnosticCount
impl Eq for DiagnosticCount
impl Eq for DiagnosticCount
impl StructuralPartialEq for DiagnosticCount
impl StructuralPartialEq for DiagnosticCount