Dioxus integration for the cameras crate. Provides a preview server, frame
registry, camera pump, a use_camera_stream hook, and a StreamPreview component
for rendering live camera frames inside a Dioxus desktop app via WebGL2.
usestd::sync::{Mutex, MutexGuard, PoisonError};/// Lock a [`Mutex`] and recover from poisoning by taking the inner value.
////// Used crate-wide so a panicked writer never permanently disables a mutex.
pub(crate)fnrecover_lock<T>(mutex:&Mutex<T>)->MutexGuard<'_, T>{
mutex.lock().unwrap_or_else(PoisonError::into_inner)}