pub struct TelemetryCollector { /* private fields */ }Expand description
テレメトリコレクター
Implementations§
Source§impl TelemetryCollector
impl TelemetryCollector
Sourcepub fn record(&mut self, event: WorktreeEvent)
pub fn record(&mut self, event: WorktreeEvent)
イベントを記録
Sourcepub fn events(&self) -> &[WorktreeEvent]
pub fn events(&self) -> &[WorktreeEvent]
全イベントを取得
Sourcepub fn generate_stats(&self) -> TelemetryStats
pub fn generate_stats(&self) -> TelemetryStats
統計を生成
Sourcepub fn generate_report(&self) -> String
pub fn generate_report(&self) -> String
レポートを生成(人間可読形式)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TelemetryCollector
impl RefUnwindSafe for TelemetryCollector
impl Send for TelemetryCollector
impl Sync for TelemetryCollector
impl Unpin for TelemetryCollector
impl UnwindSafe for TelemetryCollector
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> 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