pub struct Lock(/* private fields */);Expand description
Serialises whoever changes the telemetry settings together with this
state: the upgrade step and telemetry on|off / init. Without it, an
upgrade that read the state before an opt-out could turn telemetry back on
and save its stale copy over the opt-out. Also keeps two sessions starting
at once from both showing the notice. A lock older than Lock::STALE
was left by a killed process and is taken over. Released on drop.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Forget for Lock
impl Freeze for Lock
impl Move for Lock
impl RefUnwindSafe for Lock
impl Send for Lock
impl Sync for Lock
impl Unpin for Lock
impl UnsafeUnpin for Lock
impl UnwindSafe for Lock
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