pub struct CutPressure(/* private fields */);Expand description
Cut pressure: graph-derived isolation signal (ADR-132, DC-2).
High pressure triggers migration or split. Computed by the mincut crate within the DC-2 time budget (50 microseconds per epoch).
Implementations§
Source§impl CutPressure
impl CutPressure
Sourcepub const DEFAULT_SPLIT_THRESHOLD: Self
pub const DEFAULT_SPLIT_THRESHOLD: Self
Default split threshold. Partitions exceeding this are candidates for split.
Sourcepub const fn from_fixed(val: u32) -> Self
pub const fn from_fixed(val: u32) -> Self
Create a cut pressure value from a fixed-point representation.
Sourcepub const fn exceeds_threshold(self, threshold: Self) -> bool
pub const fn exceeds_threshold(self, threshold: Self) -> bool
Check whether this pressure exceeds the given threshold.
Trait Implementations§
Source§impl Clone for CutPressure
impl Clone for CutPressure
Source§fn clone(&self) -> CutPressure
fn clone(&self) -> CutPressure
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 moreimpl Copy for CutPressure
Source§impl Debug for CutPressure
impl Debug for CutPressure
impl Eq for CutPressure
Source§impl Hash for CutPressure
impl Hash for CutPressure
Source§impl Ord for CutPressure
impl Ord for CutPressure
Source§fn cmp(&self, other: &CutPressure) -> Ordering
fn cmp(&self, other: &CutPressure) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for CutPressure
impl PartialEq for CutPressure
Source§impl PartialOrd for CutPressure
impl PartialOrd for CutPressure
impl StructuralPartialEq for CutPressure
Auto Trait Implementations§
impl Freeze for CutPressure
impl RefUnwindSafe for CutPressure
impl Send for CutPressure
impl Sync for CutPressure
impl Unpin for CutPressure
impl UnsafeUnpin for CutPressure
impl UnwindSafe for CutPressure
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