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)
| 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; |
nothing calls this directly
no outgoing calls
no test coverage detected