pub struct IncompatibleTypeCounter { /* private fields */ }Expand description
Turns successive snapshots of an incompatible-type count into
IncompatibleTypeStatus reports. Same bound as MatchedCounter:
only increases between polls are counted.
Implementations§
Source§impl IncompatibleTypeCounter
impl IncompatibleTypeCounter
Sourcepub fn observe(&mut self, current_now: u32) -> Option<IncompatibleTypeStatus>
pub fn observe(&mut self, current_now: u32) -> Option<IncompatibleTypeStatus>
Record how many incompatible endpoints are visible now. Some when
the number GREW (a new incompatible endpoint), None otherwise — a
mismatched endpoint leaving is not an event upstream reports either.
Trait Implementations§
Source§impl Clone for IncompatibleTypeCounter
impl Clone for IncompatibleTypeCounter
Source§fn clone(&self) -> IncompatibleTypeCounter
fn clone(&self) -> IncompatibleTypeCounter
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 IncompatibleTypeCounter
Source§impl Debug for IncompatibleTypeCounter
impl Debug for IncompatibleTypeCounter
Source§impl Default for IncompatibleTypeCounter
impl Default for IncompatibleTypeCounter
Source§fn default() -> IncompatibleTypeCounter
fn default() -> IncompatibleTypeCounter
Returns the “default value” for a type. Read more
impl Eq for IncompatibleTypeCounter
Source§impl PartialEq for IncompatibleTypeCounter
impl PartialEq for IncompatibleTypeCounter
impl StructuralPartialEq for IncompatibleTypeCounter
Auto Trait Implementations§
impl Freeze for IncompatibleTypeCounter
impl RefUnwindSafe for IncompatibleTypeCounter
impl Send for IncompatibleTypeCounter
impl Sync for IncompatibleTypeCounter
impl Unpin for IncompatibleTypeCounter
impl UnsafeUnpin for IncompatibleTypeCounter
impl UnwindSafe for IncompatibleTypeCounter
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