pub struct MediaDeviceInfo { /* private fields */ }
Expand description
Describes a single media input or output device
Call enumerate_devices_sync
to obtain a list of devices for your hardware.
Implementations§
Source§impl MediaDeviceInfo
impl MediaDeviceInfo
Sourcepub fn device_id(&self) -> &str
pub fn device_id(&self) -> &str
Identifier for the represented device
The current implementation is not stable across sessions so you should not persist this value
Sourcepub fn group_id(&self) -> Option<&str>
pub fn group_id(&self) -> Option<&str>
Two devices have the same group identifier if they belong to the same physical device
Sourcepub fn kind(&self) -> MediaDeviceInfoKind
pub fn kind(&self) -> MediaDeviceInfoKind
Enumerated value that is either “videoinput”, “audioinput” or “audiooutput”.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for MediaDeviceInfo
impl !RefUnwindSafe for MediaDeviceInfo
impl !Send for MediaDeviceInfo
impl !Sync for MediaDeviceInfo
impl Unpin for MediaDeviceInfo
impl !UnwindSafe for MediaDeviceInfo
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