pub struct TelemetryStats {
pub creates: usize,
pub executions: usize,
pub successful_executions: usize,
pub failed_executions: usize,
pub cleanups: usize,
pub errors: usize,
pub total_execution_time: Duration,
}Expand description
テレメトリ統計
Fields§
§creates: usizeCreates
executions: usize§successful_executions: usizeSuccessful executions
failed_executions: usize§cleanups: usizeCleanups
errors: usize§total_execution_time: DurationTotal execution time
Implementations§
Source§impl TelemetryStats
impl TelemetryStats
Sourcepub fn average_execution_time(&self) -> Duration
pub fn average_execution_time(&self) -> Duration
平均実行時間を計算
Sourcepub fn success_rate(&self) -> f64
pub fn success_rate(&self) -> f64
成功率を計算(パーセント)
Trait Implementations§
Source§impl Clone for TelemetryStats
impl Clone for TelemetryStats
Source§fn clone(&self) -> TelemetryStats
fn clone(&self) -> TelemetryStats
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TelemetryStats
impl Debug for TelemetryStats
Source§impl Default for TelemetryStats
impl Default for TelemetryStats
Source§fn default() -> TelemetryStats
fn default() -> TelemetryStats
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for TelemetryStats
impl RefUnwindSafe for TelemetryStats
impl Send for TelemetryStats
impl Sync for TelemetryStats
impl Unpin for TelemetryStats
impl UnwindSafe for TelemetryStats
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more