[−][src]Struct weasel::metric::ReadMetrics
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,
<<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,
<<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,
<<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,
<<R as BattleRules>::UR as UserRules<R>>::UserMetricId: RefUnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,