[][src]Struct weasel::metric::ReadMetrics

pub struct ReadMetrics<'a, R: BattleRules> { /* fields omitted */ }

Handle to read metrics.

Implementations

impl<'a, R: BattleRules> ReadMetrics<'a, R>[src]

pub fn system_u64(&self, id: SystemMetricId) -> Option<u64>[src]

Returns the value of a u64 system counter.

Returns None if there's no such system counter or if it has another type.

pub fn system_i64(&self, id: SystemMetricId) -> Option<i64>[src]

Returns the value of a i64 system counter.

Returns None if there's no such system counter or if it has another type.

pub fn system_f64(&self, id: SystemMetricId) -> Option<f64>[src]

Returns the value of a f64 system counter.

Returns None if there's no such system counter or if it has another type.

pub fn user_u64(&self, id: UserMetricId<R>) -> Option<u64>[src]

Returns the value of a u64 user counter.

Returns None if there's no such user counter or if it has another type.

pub fn user_i64(&self, id: UserMetricId<R>) -> Option<i64>[src]

Returns the value of a i64 user counter.

Returns None if there's no such user counter or if it has another type.

pub fn user_f64(&self, id: UserMetricId<R>) -> Option<f64>[src]

Returns the value of a f64 user counter.

Returns None if there's no such user counter or if it has another type.

Auto Trait Implementations

impl<'a, R> RefUnwindSafe for ReadMetrics<'a, R> where
    <<R as BattleRules>::UR as UserRules<R>>::UserMetricId: RefUnwindSafe

impl<'a, R> Send for ReadMetrics<'a, R> where
    <<R as BattleRules>::UR as UserRules<R>>::UserMetricId: Sync

impl<'a, R> Sync for ReadMetrics<'a, R> where
    <<R as BattleRules>::UR as UserRules<R>>::UserMetricId: Sync

impl<'a, R> Unpin for ReadMetrics<'a, R>

impl<'a, R> UnwindSafe for ReadMetrics<'a, R> where
    <<R as BattleRules>::UR as UserRules<R>>::UserMetricId: RefUnwindSafe

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.

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