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

Method stop

rustcv-backend-v4l2/src/stream.rs:59–64  ·  view source on GitHub ↗
(&mut self)

Source from the content-addressed store, hash-verified

57 }
58
59 async fn stop(&mut self) -> Result<()> {
60 // 调用 v4l::io::traits::Stream 的 stop
61 V4lStream::stop(&mut self.inner).map_err(CameraError::Io)?;
62 self.is_streaming = false;
63 Ok(())
64 }
65
66 async fn next_frame(&mut self) -> Result<Frame<'_>> {
67 if !self.is_streaming {

Callers 1

mainFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected