pub struct WorkloadPredictor { /* private fields */ }
Expand description
Workload predictor for performance optimization
Implementations§
Source§impl WorkloadPredictor
impl WorkloadPredictor
Sourcepub fn predict_workload(
&self,
operationtype: &OperationType,
) -> WorkloadCharacteristics
pub fn predict_workload( &self, operationtype: &OperationType, ) -> WorkloadCharacteristics
Predict workload characteristics for an operation type
Sourcepub fn update_performance(
&mut self,
operation_type: OperationType,
executiontime: Duration,
)
pub fn update_performance( &mut self, operation_type: OperationType, executiontime: Duration, )
Update performance data with actual execution results
Trait Implementations§
Source§impl Debug for WorkloadPredictor
impl Debug for WorkloadPredictor
Auto Trait Implementations§
impl Freeze for WorkloadPredictor
impl RefUnwindSafe for WorkloadPredictor
impl Send for WorkloadPredictor
impl Sync for WorkloadPredictor
impl Unpin for WorkloadPredictor
impl UnwindSafe for WorkloadPredictor
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> 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