pub struct AutoParallelismSelector { /* private fields */ }Expand description
Automatic parallelism selector
Implementations§
Source§impl AutoParallelismSelector
impl AutoParallelismSelector
Sourcepub fn new(config: AutoParallelismConfig) -> Self
pub fn new(config: AutoParallelismConfig) -> Self
Create a new automatic parallelism selector
Sourcepub fn select_strategy(&mut self) -> Result<ParallelismStrategy>
pub fn select_strategy(&mut self) -> Result<ParallelismStrategy>
Select the optimal parallelism strategy
Sourcepub fn current_strategy(&self) -> Option<&ParallelismStrategy>
pub fn current_strategy(&self) -> Option<&ParallelismStrategy>
Get current strategy
Sourcepub fn update_performance_history(
&mut self,
actual_performance: PerformanceMetrics,
)
pub fn update_performance_history( &mut self, actual_performance: PerformanceMetrics, )
Update performance history
Sourcepub fn config(&self) -> &AutoParallelismConfig
pub fn config(&self) -> &AutoParallelismConfig
Get configuration
Auto Trait Implementations§
impl Freeze for AutoParallelismSelector
impl RefUnwindSafe for AutoParallelismSelector
impl Send for AutoParallelismSelector
impl Sync for AutoParallelismSelector
impl Unpin for AutoParallelismSelector
impl UnsafeUnpin for AutoParallelismSelector
impl UnwindSafe for AutoParallelismSelector
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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