pub trait Plugin: Send + Sync {
// Required methods
fn process(&mut self, frame: Frame) -> Result<Frame>;
fn name(&self) -> &str;
// Provided method
fn reset(&mut self) -> Result<()> { ... }
}Expand description
A video frame plugin that processes frames in-order.
Plugins modify video feeds at the frame level, enabling effects, transformations, and custom rendering.
§Examples
A rotation plugin might read the frame, apply geometric transformation, and return the result.
Required Methods§
Provided Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".