OptrisOptrisDocumentation

Documentation/OTC SDK/optris_sdk — Rust API referencev12.0

RecordingEvent

pub struct RecordingEvent

Something that happened to a recording on this camera.

The per-camera counterpart of crate::SessionEvent, which carries the same phase and stop reason plus a source index.

RecordingEvent — fields

phase: RecordingPhase

What happened.

path: String

The file it happened to, or empty.

message: String

What the SDK had to say about it, or empty.

stop_reason: RecordingStopReason

Who ended the recording. Meaningful on RecordingPhase::Stopped only.

RecordingEvent — methods

pub fn failed(&self) -> bool

Whether this event is a failure rather than ordinary progress.