pub struct TelemetryContext {
pub allow_tracking: bool,
pub environment: Environment,
}Expand description
Context for tracking telemetry
Fields§
§allow_tracking: boolWhether tracking is allowed
environment: EnvironmentCurrent environment
Implementations§
Source§impl TelemetryContext
impl TelemetryContext
Sourcepub fn disable_tracking(&mut self)
pub fn disable_tracking(&mut self)
Disable tracking
Sourcepub fn enable_tracking(&mut self)
pub fn enable_tracking(&mut self)
Enable tracking
Trait Implementations§
Source§impl Clone for TelemetryContext
impl Clone for TelemetryContext
Source§fn clone(&self) -> TelemetryContext
fn clone(&self) -> TelemetryContext
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 TelemetryContext
impl Debug for TelemetryContext
Auto Trait Implementations§
impl Freeze for TelemetryContext
impl RefUnwindSafe for TelemetryContext
impl Send for TelemetryContext
impl Sync for TelemetryContext
impl Unpin for TelemetryContext
impl UnsafeUnpin for TelemetryContext
impl UnwindSafe for TelemetryContext
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