pub struct EchoExecutor;Expand description
Echo executor that returns the original snapshot outputs. Useful for testing the replay pipeline without a real model.
Trait Implementations§
Source§impl ModelExecutor for EchoExecutor
impl ModelExecutor for EchoExecutor
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 EchoExecutor
impl SyncModelExecutor for EchoExecutor
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 EchoExecutor
impl RefUnwindSafe for EchoExecutor
impl Send for EchoExecutor
impl Sync for EchoExecutor
impl Unpin for EchoExecutor
impl UnsafeUnpin for EchoExecutor
impl UnwindSafe for EchoExecutor
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