pub struct Clause {
pub count: u8,
pub level: Level,
}Expand description
Single AND-combined clause of a Policy.
Read as: “at least count nodes have reached level for the
candidate sequence”. Strict: if the current cluster shape can’t
satisfy the count, the gate stalls and the policy reports
degraded.
Fields§
§count: u8Target number of nodes that must satisfy level. Counted across
the primary and all connected replicas. 0 is rejected by
Policy::new — a zero-count clause is trivially true and
almost always a config mistake.
level: LevelDurability level required.
Trait Implementations§
impl Copy for Clause
impl Eq for Clause
impl StructuralPartialEq for Clause
Auto Trait Implementations§
impl Freeze for Clause
impl RefUnwindSafe for Clause
impl Send for Clause
impl Sync for Clause
impl Unpin for Clause
impl UnsafeUnpin for Clause
impl UnwindSafe for Clause
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