pub struct HotspotPlanner;Expand description
Hotspot evaluator and split planner.
Implementations§
Source§impl HotspotPlanner
impl HotspotPlanner
Sourcepub fn evaluate(
sample: &StationLoadSample,
thresholds: HotspotThresholds,
) -> HotspotDecision
pub fn evaluate( sample: &StationLoadSample, thresholds: HotspotThresholds, ) -> HotspotDecision
Evaluates a station load sample against thresholds.
Sourcepub fn evaluate_into(
sample: &StationLoadSample,
thresholds: HotspotThresholds,
decision: &mut HotspotDecision,
)
pub fn evaluate_into( sample: &StationLoadSample, thresholds: HotspotThresholds, decision: &mut HotspotDecision, )
Evaluates a station into caller-owned output while retaining reason capacity.
Sourcepub fn propose_cell_split(
sample: &StationLoadSample,
max_cells_to_move: usize,
) -> SplitProposal
pub fn propose_cell_split( sample: &StationLoadSample, max_cells_to_move: usize, ) -> SplitProposal
Proposes cells to move by selecting the highest-pressure cells first.
Sourcepub fn propose_cell_split_with_scratch(
sample: &StationLoadSample,
max_cells_to_move: usize,
scratch: &mut HotspotSplitScratch,
) -> SplitProposal
pub fn propose_cell_split_with_scratch( sample: &StationLoadSample, max_cells_to_move: usize, scratch: &mut HotspotSplitScratch, ) -> SplitProposal
Proposes cells using caller-owned candidate scratch.
Sourcepub fn propose_cell_split_into(
sample: &StationLoadSample,
max_cells_to_move: usize,
scratch: &mut HotspotSplitScratch,
proposal: &mut SplitProposal,
)
pub fn propose_cell_split_into( sample: &StationLoadSample, max_cells_to_move: usize, scratch: &mut HotspotSplitScratch, proposal: &mut SplitProposal, )
Writes a deterministic split proposal into fully reusable caller-owned storage.
Trait Implementations§
Source§impl Clone for HotspotPlanner
impl Clone for HotspotPlanner
Source§fn clone(&self) -> HotspotPlanner
fn clone(&self) -> HotspotPlanner
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 HotspotPlanner
Source§impl Debug for HotspotPlanner
impl Debug for HotspotPlanner
Source§impl Default for HotspotPlanner
impl Default for HotspotPlanner
Source§fn default() -> HotspotPlanner
fn default() -> HotspotPlanner
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for HotspotPlanner
impl RefUnwindSafe for HotspotPlanner
impl Send for HotspotPlanner
impl Sync for HotspotPlanner
impl Unpin for HotspotPlanner
impl UnsafeUnpin for HotspotPlanner
impl UnwindSafe for HotspotPlanner
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