pub struct TelemetryHooks { /* private fields */ }Expand description
Telemetry hooks for observing inspector events.
Implementations§
Source§impl TelemetryHooks
impl TelemetryHooks
Sourcepub fn on_toggle(
self,
f: impl Fn(&DiagnosticEntry) + Send + Sync + 'static,
) -> Self
pub fn on_toggle( self, f: impl Fn(&DiagnosticEntry) + Send + Sync + 'static, ) -> Self
Set toggle callback.
Sourcepub fn on_mode_change(
self,
f: impl Fn(&DiagnosticEntry) + Send + Sync + 'static,
) -> Self
pub fn on_mode_change( self, f: impl Fn(&DiagnosticEntry) + Send + Sync + 'static, ) -> Self
Set mode change callback.
Sourcepub fn on_hover_change(
self,
f: impl Fn(&DiagnosticEntry) + Send + Sync + 'static,
) -> Self
pub fn on_hover_change( self, f: impl Fn(&DiagnosticEntry) + Send + Sync + 'static, ) -> Self
Set hover change callback.
Sourcepub fn on_selection_change(
self,
f: impl Fn(&DiagnosticEntry) + Send + Sync + 'static,
) -> Self
pub fn on_selection_change( self, f: impl Fn(&DiagnosticEntry) + Send + Sync + 'static, ) -> Self
Set selection change callback.
Trait Implementations§
Source§impl Debug for TelemetryHooks
impl Debug for TelemetryHooks
Source§impl Default for TelemetryHooks
impl Default for TelemetryHooks
Source§fn default() -> TelemetryHooks
fn default() -> TelemetryHooks
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for TelemetryHooks
impl !RefUnwindSafe for TelemetryHooks
impl Send for TelemetryHooks
impl Sync for TelemetryHooks
impl Unpin for TelemetryHooks
impl !UnwindSafe for TelemetryHooks
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