pub enum DeviceSelector {
Default,
Id(DeviceId),
Facing(CameraFacing),
Usb {
vendor_id: u16,
product_id: u16,
serial_number: Option<String>,
},
Name(String),
}Expand description
Possible values for DeviceSelector.
Variants§
Default
The Default variant.
Id(DeviceId)
The Id variant.
Facing(CameraFacing)
The Facing variant.
Usb
The Usb variant.
Fields
Name(String)
The Name variant.
Trait Implementations§
Source§impl Clone for DeviceSelector
impl Clone for DeviceSelector
Source§fn clone(&self) -> DeviceSelector
fn clone(&self) -> DeviceSelector
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 moreSource§impl Debug for DeviceSelector
impl Debug for DeviceSelector
Source§impl<'de> Deserialize<'de> for DeviceSelector
impl<'de> Deserialize<'de> for DeviceSelector
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for DeviceSelector
impl RefUnwindSafe for DeviceSelector
impl Send for DeviceSelector
impl Sync for DeviceSelector
impl Unpin for DeviceSelector
impl UnsafeUnpin for DeviceSelector
impl UnwindSafe for DeviceSelector
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