[][src]Struct background_jobs::JobStat

pub struct JobStat { /* fields omitted */ }

A time-based overview of job completion and failures

Implementations

impl JobStat[src]

pub fn new() -> JobStat[src]

A new, empty job statistic

pub fn this_hour(&self) -> usize[src]

A count from the last hour

pub fn today(&self) -> usize[src]

A count from the last day

pub fn this_month(&self) -> usize[src]

A count from the last month

pub fn all_time(&self) -> usize[src]

A total count

Trait Implementations

impl Clone for JobStat[src]

impl Debug for JobStat[src]

impl Default for JobStat[src]

impl<'de> Deserialize<'de> for JobStat[src]

impl Serialize for JobStat[src]

Auto Trait Implementations

impl RefUnwindSafe for JobStat

impl Send for JobStat

impl Sync for JobStat

impl Unpin for JobStat

impl UnwindSafe for JobStat

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> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

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

impl<T, U> Into<U> for T where
    U: From<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<V, T> VZip<V> for T where
    V: MultiLane<T>,