Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/RustCV/RustCV
/ stop
Method
stop
rustcv-backend-avf/src/stream.rs:216–222 ·
view source on GitHub ↗
停止帧采集(不销毁管线,可重新 start)。
(&mut self)
Source
from the content-addressed store, hash-verified
214
215
/// 停止帧采集(不销毁管线,可重新 start)。
216
async fn stop(&mut self) -> CvResult<()> {
217
unsafe {
218
self.session.stopRunning();
219
}
220
self.is_streaming = false;
221
Ok(())
222
}
223
224
/// 等待并返回下一帧。
225
///
Callers
1
main
Function · 0.45
Calls
no outgoing calls
Tested by
no test coverage detected