MCPcopy Create free account
hub / github.com/RustCV/RustCV / AppState

Class AppState

rustcv-backend-v4l2/examples/web_streaming.rs:38–42  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

36// 应用状态:保存广播通道的发送端
37#[derive(Clone)]
38struct AppState {
39 // 使用 broadcast channel,支持多个浏览器同时观看
40 // 发送的是 JPEG 字节流
41 tx: broadcast::Sender<Bytes>,
42}
43
44#[cfg(target_os = "linux")]
45#[tokio::main]

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected