Skip to main content

FrameCapture

Trait FrameCapture 

Source
pub trait FrameCapture: Send + Sync {
    // Required methods
    fn take_captures(&mut self) -> Vec<UxEvent>;
    fn has_captures(&self) -> bool;
}
Expand description

Abstract interface for capturing rendered output.

Implementations capture frames from either CLI mode (terminal bytes) or TUI mode (ratatui frame buffers). Both produce the same UxEvent format for unified replay and export.

Required Methods§

Source

fn take_captures(&mut self) -> Vec<UxEvent>

Returns captured events and clears the internal buffer.

Source

fn has_captures(&self) -> bool

Returns true if any events have been captured.

Implementors§