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

Function hresult_to_camera_error

rustcv-backend-msmf/src/device.rs:37–39  ·  view source on GitHub ↗

Converts Windows HRESULT error to CameraError # Arguments `e` - The HResult error from Windows API # Returns A CameraError wrapping the error message

(e: HResultError)

Source from the content-addressed store, hash-verified

35/// # Returns
36/// A CameraError wrapping the error message
37fn hresult_to_camera_error(e: HResultError) -> CameraError {
38 CameraError::Io(std::io::Error::other(e.to_string()))
39}
40
41/// Initializes the Media Foundation and COM subsystem
42///

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected