pub enum DriftState {
Fresh,
Drifted {
running: ExeFingerprint,
on_disk: ExeFingerprint,
},
DaemonDown,
Unknown,
}Expand description
The verdict of a drift check.
Variants§
Fresh
The running binary matches the binary a client would launch now.
Drifted
The running binary differs (path OR content) from the on-disk launch target – the daemon is stale and should be restarted.
DaemonDown
No daemon is running; nothing can be stale. (Decided by the async wrapper
before classify is called.)
Unknown
The check could not be completed: a stat/current_exe error, or the
daemon reported no fingerprint. Silent by design – never a warning, so a
drift-check failure never cries wolf.
Trait Implementations§
Source§impl Clone for DriftState
impl Clone for DriftState
Source§fn clone(&self) -> DriftState
fn clone(&self) -> DriftState
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 DriftState
impl Debug for DriftState
impl Eq for DriftState
Source§impl PartialEq for DriftState
impl PartialEq for DriftState
impl StructuralPartialEq for DriftState
Auto Trait Implementations§
impl Freeze for DriftState
impl RefUnwindSafe for DriftState
impl Send for DriftState
impl Sync for DriftState
impl Unpin for DriftState
impl UnsafeUnpin for DriftState
impl UnwindSafe for DriftState
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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§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.