pub struct BackendDeviceInfo {
pub native_id: String,
pub name: String,
pub description: String,
pub stability: IdentityStability,
pub facing: CameraFacing,
pub usb: Option<UsbIdentity>,
}Expand description
Backend-neutral device metadata returned by a custom provider.
Fields§
§native_id: StringBackend-native identifier, unique within the provider.
name: StringHuman-readable name.
description: StringHuman-readable description.
stability: IdentityStabilityPersistence guarantee for the identifier.
facing: CameraFacingPhysical camera facing.
usb: Option<UsbIdentity>USB identity when available.
Trait Implementations§
Source§impl Clone for BackendDeviceInfo
impl Clone for BackendDeviceInfo
Source§fn clone(&self) -> BackendDeviceInfo
fn clone(&self) -> BackendDeviceInfo
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for BackendDeviceInfo
impl RefUnwindSafe for BackendDeviceInfo
impl Send for BackendDeviceInfo
impl Sync for BackendDeviceInfo
impl Unpin for BackendDeviceInfo
impl UnsafeUnpin for BackendDeviceInfo
impl UnwindSafe for BackendDeviceInfo
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more