pub struct AutoOptimizationSystem {
pub enabled: bool,
pub optimization_queue: Vec<OptimizationTask>,
pub last_optimization: Option<Instant>,
/* private fields */
}Expand description
Automated optimization system
Fields§
§enabled: boolWhether auto-optimization is enabled
optimization_queue: Vec<OptimizationTask>Optimization queue
last_optimization: Option<Instant>Last optimization run
Implementations§
Source§impl AutoOptimizationSystem
impl AutoOptimizationSystem
Sourcepub fn add_task(&mut self, task: OptimizationTask)
pub fn add_task(&mut self, task: OptimizationTask)
Add optimization task
Sourcepub fn process_queue(&mut self) -> Vec<OptimizationResult>
pub fn process_queue(&mut self) -> Vec<OptimizationResult>
Process optimization queue
Trait Implementations§
Auto Trait Implementations§
impl Freeze for AutoOptimizationSystem
impl RefUnwindSafe for AutoOptimizationSystem
impl Send for AutoOptimizationSystem
impl Sync for AutoOptimizationSystem
impl Unpin for AutoOptimizationSystem
impl UnsafeUnpin for AutoOptimizationSystem
impl UnwindSafe for AutoOptimizationSystem
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more