Skip to main content

LiveReplay

Trait LiveReplay 

Source
pub trait LiveReplay: Sized + 'static {
    type DataSet: CaptureDataSet + Send + 'static;

    // Required methods
    fn build_twin() -> CuResult<(Self, RobotClockMock)>;
    fn replay_capture(
        &mut self,
        clock: &RobotClockMock,
        capture: &mut CopperList<Self::DataSet>,
        keyframe: Option<&KeyFrame>,
    ) -> CuResult<()>;

    // Provided method
    fn stop_twin(&mut self) -> CuResult<()> { ... }
}
Expand description

Implemented by #[copper_runtime(..., sim_mode = true)] with logstream enabled.

Required Associated Types§

Required Methods§

Source

fn build_twin() -> CuResult<(Self, RobotClockMock)>

Source

fn replay_capture( &mut self, clock: &RobotClockMock, capture: &mut CopperList<Self::DataSet>, keyframe: Option<&KeyFrame>, ) -> CuResult<()>

Provided Methods§

Source

fn stop_twin(&mut self) -> CuResult<()>

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§