(&mut self)
| 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 { |