pub enum Disposition {
EnabledByDefault,
EnabledByEnv,
DisabledByEnv,
DisabledByDoNotTrack,
DisabledByConfig,
DisabledConfigUnreadable,
DisabledNoKey,
DisabledInCi,
}Expand description
Why analytics is on or off.
Variants§
EnabledByDefault
Reporting, with no override in play.
EnabledByEnv
Reporting because an override turned it on explicitly.
DisabledByEnv
MESH_LLM_ANALYTICS is set to a falsey value.
DisabledByDoNotTrack
DO_NOT_TRACK is set.
DisabledByConfig
[analytics] enabled = false in the config file.
DisabledConfigUnreadable
The config file exists but could not be read or parsed.
A privacy control has to fail closed. A config with one mistyped key anywhere fails to deserialize as a whole, and treating that as “no preference stated” would silently re-enable reporting for someone who had opted out.
DisabledNoKey
No project key, so there is nowhere to report. Source builds land here.
DisabledInCi
A continuous-integration environment was detected.
Implementations§
Source§impl Disposition
impl Disposition
Trait Implementations§
Source§impl Clone for Disposition
impl Clone for Disposition
impl Copy for Disposition
Source§impl Debug for Disposition
impl Debug for Disposition
impl Eq for Disposition
Source§impl PartialEq for Disposition
impl PartialEq for Disposition
impl StructuralPartialEq for Disposition
Auto Trait Implementations§
impl Freeze for Disposition
impl RefUnwindSafe for Disposition
impl Send for Disposition
impl Sync for Disposition
impl Unpin for Disposition
impl UnsafeUnpin for Disposition
impl UnwindSafe for Disposition
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.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