pub struct TelemetryState {
pub schema_version: u32,
pub last_version: Option<String>,
pub last_flush: Option<String>,
}Expand description
Per-machine telemetry bookkeeping. Never contains anything about the user’s work — only what this crate needs to avoid re-reporting an install and to rate-limit its own flushes.
Fields§
§schema_version: u32Format version of this file.
last_version: Option<String>The app version last seen on this machine.
last_flush: Option<String>When a flush was last attempted, RFC3339 UTC. Attempt, not success, so a permanently offline machine tries at most once per interval.
Trait Implementations§
Source§impl Clone for TelemetryState
impl Clone for TelemetryState
Source§fn clone(&self) -> TelemetryState
fn clone(&self) -> TelemetryState
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 TelemetryState
impl Debug for TelemetryState
Source§impl Default for TelemetryState
impl Default for TelemetryState
Source§fn default() -> TelemetryState
fn default() -> TelemetryState
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for TelemetryState
impl<'de> Deserialize<'de> for TelemetryState
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for TelemetryState
impl RefUnwindSafe for TelemetryState
impl Send for TelemetryState
impl Sync for TelemetryState
impl Unpin for TelemetryState
impl UnsafeUnpin for TelemetryState
impl UnwindSafe for TelemetryState
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