Struct glean::private::TimespanMetric [−][src]
pub struct TimespanMetric(_);
Developer-facing API for recording timespan metrics.
Instances of this class type are automatically generated by the parsers at build time, allowing developers to record values that were previously registered in the metrics.yaml file.
Implementations
impl TimespanMetric
[src]
impl TimespanMetric
[src]pub fn new(meta: CommonMetricData, time_unit: TimeUnit) -> Self
[src]
The public constructor used by automatically generated metrics.
impl TimespanMetric
[src]
impl TimespanMetric
[src]pub fn start(&self)
[src]
pub fn stop(&self)
[src]
pub fn cancel(&self)
[src]
pub fn set_raw(&self, __arg1: Duration)
[src]
pub fn test_get_value<'a, S: Into<Option<&'a str>>>(
&self,
__arg1: S
) -> Option<u64>
[src]
&self,
__arg1: S
) -> Option<u64>
pub fn test_get_num_recorded_errors<'a, S: Into<Option<&'a str>>>(
&self,
__arg1: ErrorType,
__arg2: S
) -> i32
[src]
&self,
__arg1: ErrorType,
__arg2: S
) -> i32
Trait Implementations
impl Clone for TimespanMetric
[src]
impl Clone for TimespanMetric
[src]fn clone(&self) -> TimespanMetric
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Timespan for TimespanMetric
[src]
impl Timespan for TimespanMetric
[src]fn start(&self)
[src]
fn stop(&self)
[src]
fn cancel(&self)
[src]
fn set_raw(&self, elapsed: Duration)
[src]
fn test_get_value<'a, S: Into<Option<&'a str>>>(
&self,
ping_name: S
) -> Option<u64>
[src]
&self,
ping_name: S
) -> Option<u64>
fn test_get_num_recorded_errors<'a, S: Into<Option<&'a str>>>(
&self,
error: ErrorType,
ping_name: S
) -> i32
[src]
&self,
error: ErrorType,
ping_name: S
) -> i32
Auto Trait Implementations
impl RefUnwindSafe for TimespanMetric
impl RefUnwindSafe for TimespanMetric
impl Send for TimespanMetric
impl Send for TimespanMetric
impl Sync for TimespanMetric
impl Sync for TimespanMetric
impl Unpin for TimespanMetric
impl Unpin for TimespanMetric
impl UnwindSafe for TimespanMetric
impl UnwindSafe for TimespanMetric