Skip to main content

StreamOpen

Type Alias StreamOpen 

Source
pub type StreamOpen = Arc<dyn Fn() -> Result<OpenedCameraStream, String> + Send + Sync>;
Expand description

Opens a camera’s MJPEG stream on demand. A closure, not a URL, so a recorder can reconnect (re-open) without knowing the source and tests can inject a fake that yields canned readers.

Aliased Type§

pub struct StreamOpen { /* private fields */ }