pub struct SequentialStrategy { /* private fields */ }Expand description
Sequential execution strategy - executes tasks one by one
Implementations§
Trait Implementations§
Source§impl Default for SequentialStrategy
impl Default for SequentialStrategy
Source§impl ExecutionStrategy for SequentialStrategy
impl ExecutionStrategy for SequentialStrategy
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 SequentialStrategy
impl RefUnwindSafe for SequentialStrategy
impl Send for SequentialStrategy
impl Sync for SequentialStrategy
impl Unpin for SequentialStrategy
impl UnwindSafe for SequentialStrategy
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