[][src]Struct fluvio_system_util::counters::Counters

pub struct Counters<T> {
    pub list: BTreeMap<T, Counter>,
}

Fields

list: BTreeMap<T, Counter>

Implementations

impl<T> Counters<T> where
    T: Ord
[src]

pub fn new(items: Vec<(T, &'static str, bool)>) -> Self[src]

build counter from array of tuples

pub fn inc_counter(&mut self, id: T)[src]

increment counter

pub fn set_counter(&mut self, id: T, val: u32)[src]

increment counter

pub fn reset(&mut self)[src]

reset counters

pub fn header_fmt(&self) -> String[src]

counter heders in string format (center justified, min 10 spaces)

pub fn values_fmt(&self) -> String[src]

format values in string format (center justified to column header - min 10 spaces)

Trait Implementations

impl<T: Debug> Debug for Counters<T>[src]

impl<T> Default for Counters<T> where
    T: Ord
[src]

impl<T: PartialEq> PartialEq<Counters<T>> for Counters<T>[src]

impl<T> StructuralPartialEq for Counters<T>[src]

Auto Trait Implementations

impl<T> RefUnwindSafe for Counters<T> where
    T: RefUnwindSafe
[src]

impl<T> Send for Counters<T> where
    T: Send
[src]

impl<T> Sync for Counters<T> where
    T: Sync
[src]

impl<T> Unpin for Counters<T>[src]

impl<T> UnwindSafe for Counters<T> where
    T: RefUnwindSafe
[src]

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,