pub struct SequentialExecutionStrategy { /* private fields */ }Expand description
Sequential execution strategy for deterministic, single-threaded execution
Implementations§
Source§impl SequentialExecutionStrategy
impl SequentialExecutionStrategy
Sourcepub fn builder() -> SequentialStrategyBuilder
pub fn builder() -> SequentialStrategyBuilder
Create a builder for sequential strategy
Trait Implementations§
Source§impl Debug for SequentialExecutionStrategy
impl Debug for SequentialExecutionStrategy
Source§impl ExecutionStrategy for SequentialExecutionStrategy
impl ExecutionStrategy for SequentialExecutionStrategy
Source§fn description(&self) -> &'static str
fn description(&self) -> &'static str
Get strategy description
Source§fn config(&self) -> &StrategyConfig
fn config(&self) -> &StrategyConfig
Get strategy configuration
Source§fn configure(
&mut self,
config: StrategyConfig,
) -> Pin<Box<dyn Future<Output = SklResult<()>> + Send + '_>>
fn configure( &mut self, config: StrategyConfig, ) -> Pin<Box<dyn Future<Output = SklResult<()>> + Send + '_>>
Configure the strategy
Source§fn initialize(
&mut self,
) -> Pin<Box<dyn Future<Output = SklResult<()>> + Send + '_>>
fn initialize( &mut self, ) -> Pin<Box<dyn Future<Output = SklResult<()>> + Send + '_>>
Initialize the strategy
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 in batch
Source§fn can_handle(&self, _task: &ExecutionTask) -> bool
fn can_handle(&self, _task: &ExecutionTask) -> bool
Check if strategy can handle the given task
Source§fn estimate_execution_time(&self, _task: &ExecutionTask) -> Option<Duration>
fn estimate_execution_time(&self, _task: &ExecutionTask) -> Option<Duration>
Estimate execution time for a task
Source§fn health_status(&self) -> StrategyHealth
fn health_status(&self) -> StrategyHealth
Get current strategy health status
Source§fn metrics(&self) -> StrategyMetrics
fn metrics(&self) -> StrategyMetrics
Get strategy metrics
Source§fn shutdown(
&mut self,
) -> Pin<Box<dyn Future<Output = SklResult<()>> + Send + '_>>
fn shutdown( &mut self, ) -> Pin<Box<dyn Future<Output = SklResult<()>> + Send + '_>>
Shutdown the strategy gracefully
Source§fn scale(
&mut self,
_scale_factor: f64,
) -> Pin<Box<dyn Future<Output = SklResult<()>> + Send + '_>>
fn scale( &mut self, _scale_factor: f64, ) -> Pin<Box<dyn Future<Output = SklResult<()>> + Send + '_>>
Scale strategy resources
Source§fn get_resource_requirements(&self, task: &ExecutionTask) -> TaskRequirements
fn get_resource_requirements(&self, task: &ExecutionTask) -> TaskRequirements
Get resource requirements for a task
Source§fn validate_task(&self, task: &ExecutionTask) -> SklResult<()>
fn validate_task(&self, task: &ExecutionTask) -> SklResult<()>
Validate task compatibility
Auto Trait Implementations§
impl Freeze for SequentialExecutionStrategy
impl RefUnwindSafe for SequentialExecutionStrategy
impl Send for SequentialExecutionStrategy
impl Sync for SequentialExecutionStrategy
impl Unpin for SequentialExecutionStrategy
impl UnwindSafe for SequentialExecutionStrategy
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