pub struct NoOpExecutor;Expand description
No-op executor that returns empty outputs. Used when no real model execution is available.
Trait Implementations§
Source§impl ModelExecutor for NoOpExecutor
impl ModelExecutor for NoOpExecutor
Source§fn execute<'life0, 'life1, 'life2, 'life3, 'life4, 'async_trait>(
&'life0 self,
_inputs: &'life1 [Input],
_model_params: Option<&'life2 ModelParameters>,
_context: &'life3 ExecutionContext,
_config: &'life4 ExecutionConfig,
) -> Pin<Box<dyn Future<Output = Result<ExecutionResult, ReplayError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
'life4: 'async_trait,
fn execute<'life0, 'life1, 'life2, 'life3, 'life4, 'async_trait>(
&'life0 self,
_inputs: &'life1 [Input],
_model_params: Option<&'life2 ModelParameters>,
_context: &'life3 ExecutionContext,
_config: &'life4 ExecutionConfig,
) -> Pin<Box<dyn Future<Output = Result<ExecutionResult, ReplayError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
'life4: 'async_trait,
Execute a model with the given inputs and parameters
Source§fn supports_model(&self, _model_name: &str) -> bool
fn supports_model(&self, _model_name: &str) -> bool
Check if this executor supports the given model
Source§fn executor_name(&self) -> &str
fn executor_name(&self) -> &str
Get executor name for logging/auditing
Source§fn compare_outputs(
&self,
original: &[Output],
replayed: &[Output],
tolerance: f64,
) -> ComparisonResult
fn compare_outputs( &self, original: &[Output], replayed: &[Output], tolerance: f64, ) -> ComparisonResult
Compare original outputs with replayed outputs
Source§impl SyncModelExecutor for NoOpExecutor
impl SyncModelExecutor for NoOpExecutor
fn execute( &self, _inputs: &[Input], _model_params: Option<&ModelParameters>, _context: &ExecutionContext, _config: &ExecutionConfig, ) -> Result<ExecutionResult, ReplayError>
fn supports_model(&self, _model_name: &str) -> bool
fn executor_name(&self) -> &str
fn compare_outputs( &self, original: &[Output], replayed: &[Output], tolerance: f64, ) -> ComparisonResult
Auto Trait Implementations§
impl Freeze for NoOpExecutor
impl RefUnwindSafe for NoOpExecutor
impl Send for NoOpExecutor
impl Sync for NoOpExecutor
impl Unpin for NoOpExecutor
impl UnsafeUnpin for NoOpExecutor
impl UnwindSafe for NoOpExecutor
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