Skip to main content

StepObserver

Trait StepObserver 

Source
pub trait StepObserver: Send + Sync {
    // Required method
    fn on_step<'a>(
        &'a self,
        event: StepEvent<'a>,
    ) -> Pin<Box<dyn Future<Output = ()> + Send + 'a>>;
}
Expand description

Callback for observing step execution in real-time.

Implement this to receive StepEvents as each step completes (or is skipped). The test runner uses this for TestInfo step events; MCP could use it for progress notifications.

Required Methods§

Source

fn on_step<'a>( &'a self, event: StepEvent<'a>, ) -> Pin<Box<dyn Future<Output = ()> + Send + 'a>>

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§