[][src]Struct cadence::Timer

pub struct Timer { /* fields omitted */ }

Timers are a positive number of milliseconds between a start and end point.

Statistical distribution of timer values is often computed by the server.

See the Timed trait for more information.

Methods

impl Timer[src]

pub fn new(prefix: &str, key: &str, time: u64) -> Timer[src]

Trait Implementations

impl Metric for Timer[src]

impl From<String> for Timer[src]

impl Clone for Timer[src]

impl Eq for Timer[src]

impl PartialEq<Timer> for Timer[src]

impl Debug for Timer[src]

impl Hash for Timer[src]

Auto Trait Implementations

impl Send for Timer

impl Sync for Timer

impl Unpin for Timer

impl UnwindSafe for Timer

impl RefUnwindSafe for Timer

Blanket Implementations

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

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

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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<T> Borrow<T> for T where
    T: ?Sized
[src]

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

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