OptrisOptrisDocumentation

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

SimulatedLinkChange

pub enum SimulatedLinkChange

What simulate_link_change does to a simulated camera.

SimulatedLinkChange — variants

Lost

The link drops, as when a cable is pulled: frames stop and ConnectionStatus::Lost is published. The camera stays on the bus, so a re-open brings it back.

Stalled

Frames stop while the camera stays open: ConnectionStatus::Stalled. It comes back on its own with SimulatedLinkChange::Resumed, or with a re-open.

Resumed

A stalled link heals on its own: frames again and ConnectionStatus::Connected, with no re-open.

Unplugged

The camera is unplugged: frames stop, ConnectionStatus::Lost is published and the camera leaves the bus, so automatic recovery waits for it (crate::ReconnectPhase::WaitingForDevice) and Camera::reconnect fails.

Replugged

The camera is plugged back in. Its link stays down until it is re-opened, as a real camera's does.