pub struct TelemetryConsent { /* private fields */ }Expand description
Proof that a specific machine, at a specific moment, was permitted to collect.
Constructed only by decide. Not Default, not constructible from a
bool, and consumed by value.
Implementations§
Source§impl TelemetryConsent
impl TelemetryConsent
Sourcepub fn with_config_path(self, config_path: Option<PathBuf>) -> Self
pub fn with_config_path(self, config_path: Option<PathBuf>) -> Self
Remember which config file this process was launched with, so the flush path can re-resolve from it.
Without this the documented mid-session opt-out —
codewhale config set telemetry false, an external write by another
process — would never be observed by a session that is already running.
Sourcepub fn config_path(&self) -> Option<&Path>
pub fn config_path(&self) -> Option<&Path>
The config file this process was launched with, if any.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TelemetryConsent
impl RefUnwindSafe for TelemetryConsent
impl Send for TelemetryConsent
impl Sync for TelemetryConsent
impl Unpin for TelemetryConsent
impl UnsafeUnpin for TelemetryConsent
impl UnwindSafe for TelemetryConsent
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