pub fn init() -> PylonResult<RuntimeGuard>Expand description
Explicitly initializes the Pylon runtime and returns a guard that keeps it alive until dropped.
Calling this is not required before normal use — the runtime
initializes automatically on the first call to
crate::enumerate_devices, crate::create_first_device, or
crate::create_device.
Use runtime::init() when you need to:
- Detect a missing Pylon installation at startup, before opening any camera.
- Keep the runtime alive across a window where no camera handles exist.
- Drive deterministic teardown via
shutdown.
The guard releases its hold on the runtime when dropped; if it is the last holder, the runtime is terminated at that point.