pub struct ExperimentData {
pub action_result: ActionResult,
pub signal_frames: Vec<TimestampedSignalFrame>,
pub tcp_config: TCPReaderConfig,
pub action_start: Instant,
pub action_end: Instant,
pub total_duration: Duration,
}Expand description
Complete experiment result containing action outcome and synchronized signal data Now uses lightweight SignalFrame structures for better memory efficiency
Fields§
§action_result: ActionResultResult of the executed action
signal_frames: Vec<TimestampedSignalFrame>Lightweight signal frames (much more memory efficient)
tcp_config: TCPReaderConfigTCP logger configuration for context (stored once, not per frame)
action_start: InstantWhen the action started
action_end: InstantWhen the action ended
total_duration: DurationTotal action duration
Implementations§
Source§impl ExperimentData
impl ExperimentData
Sourcepub fn data_during_action(&self) -> Vec<&TimestampedSignalFrame>
pub fn data_during_action(&self) -> Vec<&TimestampedSignalFrame>
Get signal data captured during action execution
Sourcepub fn data_before_action(
&self,
duration: Duration,
) -> Vec<&TimestampedSignalFrame>
pub fn data_before_action( &self, duration: Duration, ) -> Vec<&TimestampedSignalFrame>
Get signal data before action execution
Sourcepub fn data_after_action(
&self,
duration: Duration,
) -> Vec<&TimestampedSignalFrame>
pub fn data_after_action( &self, duration: Duration, ) -> Vec<&TimestampedSignalFrame>
Get signal data after action execution
Sourcepub fn get_tcp_logger_data(&self) -> Vec<TCPLoggerData>
pub fn get_tcp_logger_data(&self) -> Vec<TCPLoggerData>
Get full TCPLoggerData for compatibility when needed This reconstructs the full data structures using stored TCP config
Trait Implementations§
Source§impl Debug for ExperimentData
impl Debug for ExperimentData
Source§impl ExpectFromExecution<ExperimentData> for ExecutionResult
impl ExpectFromExecution<ExperimentData> for ExecutionResult
fn expect_from_execution(self) -> Result<ExperimentData, NanonisError>
Auto Trait Implementations§
impl Freeze for ExperimentData
impl RefUnwindSafe for ExperimentData
impl Send for ExperimentData
impl Sync for ExperimentData
impl Unpin for ExperimentData
impl UnwindSafe for ExperimentData
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