pub enum GuardTransition {
ReconciliationStarted,
ReconciliationClean,
ReconciliationFindings,
ReconciliationDegraded,
EventAccepted,
EventsClean,
EventsFindings,
EventsDegraded,
CoverageLost,
PolicyChanged,
RepairStarted,
Stopped,
}Expand description
Events that drive the root state machine.
Adding a variant here MUST be handled in GuardRootState::transition.
Variants§
ReconciliationStarted
Registration or explicit reconciliation started (stopped -> indexing).
ReconciliationClean
Initial reconciliation or repair completed with no findings.
ReconciliationFindings
Initial reconciliation or repair completed with unsuppressed findings.
ReconciliationDegraded
Initial reconciliation or repair completed but coverage is incomplete.
EventAccepted
A filesystem event was accepted while current or blocked.
EventsClean
All queued events through the current sequence were processed with no findings.
EventsFindings
All queued events were processed and at least one has a finding.
EventsDegraded
All queued events were processed but coverage is incomplete.
CoverageLost
Watcher overflow, queue overflow, unreadable input, lost root, persistence failure, or journal discontinuity.
PolicyChanged
Binary, detector, suppression, preprocessing, schema, or config identity changed.
RepairStarted
Explicit or automatic full reconciliation announced (from degraded or stale-policy back to indexing).
Stopped
Root removed from active watching.
Trait Implementations§
Source§impl Clone for GuardTransition
impl Clone for GuardTransition
Source§fn clone(&self) -> GuardTransition
fn clone(&self) -> GuardTransition
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for GuardTransition
impl Debug for GuardTransition
Source§impl Display for GuardTransition
impl Display for GuardTransition
impl Eq for GuardTransition
Source§impl PartialEq for GuardTransition
impl PartialEq for GuardTransition
impl StructuralPartialEq for GuardTransition
Auto Trait Implementations§
impl Freeze for GuardTransition
impl RefUnwindSafe for GuardTransition
impl Send for GuardTransition
impl Sync for GuardTransition
impl Unpin for GuardTransition
impl UnsafeUnpin for GuardTransition
impl UnwindSafe for GuardTransition
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
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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> ⓘ
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> ⓘ
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