pub struct ProfileProveLoop {
pub results: Vec<OptimizationResult>,
pub active: Vec<ProfileProveState>,
}Expand description
Orchestrator for running profile-prove loops across SLO rows.
Fields§
§results: Vec<OptimizationResult>Results from completed optimization attempts.
active: Vec<ProfileProveState>Currently running states.
Implementations§
Source§impl ProfileProveLoop
impl ProfileProveLoop
Sourcepub fn start(&mut self, row_id: SloRowId, optimization_description: &str)
pub fn start(&mut self, row_id: SloRowId, optimization_description: &str)
Start an optimization attempt for an SLO row.
Sourcepub fn get_active(&self, row_id: SloRowId) -> Option<&ProfileProveState>
pub fn get_active(&self, row_id: SloRowId) -> Option<&ProfileProveState>
Get active state for a row (if any).
Sourcepub fn get_active_mut(
&mut self,
row_id: SloRowId,
) -> Option<&mut ProfileProveState>
pub fn get_active_mut( &mut self, row_id: SloRowId, ) -> Option<&mut ProfileProveState>
Get mutable active state for a row.
Sourcepub fn complete(&mut self, row_id: SloRowId)
pub fn complete(&mut self, row_id: SloRowId)
Complete an active state and move result to results.
Sourcepub fn summary(&self) -> ProfileProveSummary
pub fn summary(&self) -> ProfileProveSummary
Get summary of all completed optimizations.
Trait Implementations§
Source§impl Clone for ProfileProveLoop
impl Clone for ProfileProveLoop
Source§fn clone(&self) -> ProfileProveLoop
fn clone(&self) -> ProfileProveLoop
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 ProfileProveLoop
impl Debug for ProfileProveLoop
Source§impl Default for ProfileProveLoop
impl Default for ProfileProveLoop
Source§fn default() -> ProfileProveLoop
fn default() -> ProfileProveLoop
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ProfileProveLoop
impl RefUnwindSafe for ProfileProveLoop
impl Send for ProfileProveLoop
impl Sync for ProfileProveLoop
impl Unpin for ProfileProveLoop
impl UnsafeUnpin for ProfileProveLoop
impl UnwindSafe for ProfileProveLoop
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