#[non_exhaustive]pub enum ObserverState {
Passive,
Active,
Draining,
}Expand description
Observer worker lifecycle (active-passive HA).
Passive— read-only secondary. Consumes events for warm standby but does not commit writes upstream.Active— primary writer. The only projection state permitted to callProjectionStoremutators.Draining— graceful shutdown. Rejects new work, flushes in-flight.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Passive
Not primary; events are observed but writes are blocked.
Active
Primary writer.
Draining
Winding down — rejects new work.
Trait Implementations§
Source§impl Clone for ObserverState
impl Clone for ObserverState
Source§fn clone(&self) -> ObserverState
fn clone(&self) -> ObserverState
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 ObserverState
impl Debug for ObserverState
Source§impl PartialEq for ObserverState
impl PartialEq for ObserverState
Source§fn eq(&self, other: &ObserverState) -> bool
fn eq(&self, other: &ObserverState) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for ObserverState
impl Eq for ObserverState
impl StructuralPartialEq for ObserverState
Auto Trait Implementations§
impl Freeze for ObserverState
impl RefUnwindSafe for ObserverState
impl Send for ObserverState
impl Sync for ObserverState
impl Unpin for ObserverState
impl UnsafeUnpin for ObserverState
impl UnwindSafe for ObserverState
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
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.