OptrisOptrisDocumentation

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

SessionEvent

pub struct SessionEvent

Something that happened to a session, or to one of its cameras.

SessionEvent — 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.

source: Option<i32>

Which camera it is about, or None for an event about the session as a whole. Every event a single-camera recording produces is None.

stop_reason: RecordingStopReason

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

SessionEvent — methods

pub fn failed(&self) -> bool

Whether this event is a failure rather than ordinary progress.