pub enum UnderCapacity {
Withdraw,
EvictOldest,
}Expand description
Behavior when a replica falls below the channel’s retention requirement due to local disk pressure. The leader’s replication factor is a hard guarantee; replicas are best-effort under pressure.
Variants§
Withdraw
Drop the replica role; fall through to greedy LRU if also enabled. The channel’s capability tag for this node is withdrawn and reads re-route to the leader. Default.
EvictOldest
Aggressively evict the oldest local data to maintain the channel’s retention even if total data exceeds disk. Trades older data for keeping the replication factor intact.
Trait Implementations§
Source§impl Clone for UnderCapacity
impl Clone for UnderCapacity
Source§fn clone(&self) -> UnderCapacity
fn clone(&self) -> UnderCapacity
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 UnderCapacity
impl Debug for UnderCapacity
Source§impl Default for UnderCapacity
impl Default for UnderCapacity
Source§fn default() -> UnderCapacity
fn default() -> UnderCapacity
Returns the “default value” for a type. Read more
Source§impl PartialEq for UnderCapacity
impl PartialEq for UnderCapacity
Source§fn eq(&self, other: &UnderCapacity) -> bool
fn eq(&self, other: &UnderCapacity) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for UnderCapacity
impl Eq for UnderCapacity
impl StructuralPartialEq for UnderCapacity
Auto Trait Implementations§
impl Freeze for UnderCapacity
impl RefUnwindSafe for UnderCapacity
impl Send for UnderCapacity
impl Sync for UnderCapacity
impl Unpin for UnderCapacity
impl UnsafeUnpin for UnderCapacity
impl UnwindSafe for UnderCapacity
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.