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

Method set_trigger

rustcv-backend-msmf/src/controls.rs:144–149  ·  view source on GitHub ↗

Configures the camera trigger mode. # Arguments `config` - Trigger configuration # Returns Returns `Ok(())` if trigger is disabled, or an error for other modes as hardware trigger is not supported.

(&self, config: TriggerConfig)

Source from the content-addressed store, hash-verified

142 /// Returns `Ok(())` if trigger is disabled, or an error for other modes
143 /// as hardware trigger is not supported.
144 fn set_trigger(&self, config: TriggerConfig) -> Result<()> {
145 if config.mode == TriggerMode::Off {
146 return Ok(());
147 }
148 Err(CameraError::FormatNotSupported)
149 }
150
151 fn export_state(&self) -> Result<serde_json::Value> {
152 use serde_json::json;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected