pub struct ParallelStrategy { /* private fields */ }Expand description
Parallel execution strategy - executes tasks concurrently
Implementations§
Trait Implementations§
Source§impl Default for ParallelStrategy
impl Default for ParallelStrategy
Source§impl ExecutionStrategy for ParallelStrategy
impl ExecutionStrategy for ParallelStrategy
Source§fn description(&self) -> &'static str
fn description(&self) -> &'static str
Strategy description
Source§fn execute_task(
&self,
task: ExecutionTask,
) -> Pin<Box<dyn Future<Output = SklResult<TaskResult>> + Send + '_>>
fn execute_task( &self, task: ExecutionTask, ) -> Pin<Box<dyn Future<Output = SklResult<TaskResult>> + Send + '_>>
Execute a single task
Source§fn execute_batch(
&self,
tasks: Vec<ExecutionTask>,
) -> Pin<Box<dyn Future<Output = SklResult<Vec<TaskResult>>> + Send + '_>>
fn execute_batch( &self, tasks: Vec<ExecutionTask>, ) -> Pin<Box<dyn Future<Output = SklResult<Vec<TaskResult>>> + Send + '_>>
Execute multiple tasks
Source§fn get_config(&self) -> StrategyConfig
fn get_config(&self) -> StrategyConfig
Get strategy configuration
Source§fn update_config(&mut self, config: StrategyConfig) -> SklResult<()>
fn update_config(&mut self, config: StrategyConfig) -> SklResult<()>
Update strategy configuration
Source§fn get_metrics(&self) -> StrategyMetrics
fn get_metrics(&self) -> StrategyMetrics
Get strategy metrics
Source§fn health_check(&self) -> StrategyHealth
fn health_check(&self) -> StrategyHealth
Check strategy health
Auto Trait Implementations§
impl Freeze for ParallelStrategy
impl RefUnwindSafe for ParallelStrategy
impl Send for ParallelStrategy
impl Sync for ParallelStrategy
impl Unpin for ParallelStrategy
impl UnwindSafe for ParallelStrategy
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