OptrisOptrisDocumentation

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

ActionOutcome

pub enum ActionOutcome

What became of an action that did not fail.

Two of these are neither errors nor successes: a snapshot its own minimum interval skipped, and one dropped from a full action queue. Both leave an activation with no picture, which an application has to be able to say out loud instead of guessing from a file that is not there.

ActionOutcome — variants

Unknown

Nobody said.

It has no producer, deliberately: the SDK never reports it, so an ActionCompleted the SDK delivered always carries one of the others. It is what a zeroed struct is born with.

Written

The file is complete on disk under ActionCompleted::path.

Reported after the writer returned success, so it is a confirmation rather than an intention.

SkippedByMinimumInterval

The action's own minimum interval declined it. Not an error.

ActionCompleted::path is empty, and that is not an omission: the name is generated after this decision, so no file was ever named.

DroppedQueueFull

The action queue was full and this action was discarded. Not an error either; the activation simply has no picture.

DroppedFrameBudget

The still was dropped because the frame that fired the rule could not be kept: nothing is written, rather than another frame under this activation's name. Not an error either.

Other — (i32)

An outcome this build of the crate does not know about.