[go: up one dir, main page]

[][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 PartialEq<Timer> for Timer[src]

impl From<String> for Timer[src]

impl Clone for Timer[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl Eq for Timer[src]

impl Debug for Timer[src]

impl Hash for Timer[src]

fn hash_slice<H>(data: &[Self], state: &mut H) where
    H: Hasher
1.3.0
[src]

Feeds a slice of this type into the given [Hasher]. Read more

Auto Trait Implementations

impl Send for Timer

impl Sync for Timer

Blanket Implementations

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

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

type Owned = T

impl<T> From for T[src]

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

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

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

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

The type returned in the event of a conversion error.