[][src]Struct alacritty::meter::Sampler

pub struct Sampler<'a> {
    meter: &'a mut Meter,
    created_at: Instant,
}

Sampler.

Samplers record how long they are "alive" for and update the meter on drop..

Fields

meter: &'a mut Meter

Reference to meter that created the sampler.

created_at: Instant

When the sampler was created.

Implementations

impl<'a> Sampler<'a>[src]

fn new(meter: &'a mut Meter) -> Sampler<'a>[src]

fn alive_duration(&self) -> Duration[src]

Trait Implementations

impl<'a> Drop for Sampler<'a>[src]

Auto Trait Implementations

impl<'a> RefUnwindSafe for Sampler<'a>

impl<'a> Send for Sampler<'a>

impl<'a> Sync for Sampler<'a>

impl<'a> Unpin for Sampler<'a>

impl<'a> !UnwindSafe for Sampler<'a>

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, 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.