Struct web_audio_api::MediaDeviceInfo
source · pub struct MediaDeviceInfo { /* private fields */ }
Expand description
Describes a single media input or output device
Call enumerate_devices
to obtain a list of devices for your hardware.
Implementations
sourceimpl 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 !RefUnwindSafe for MediaDeviceInfo
impl !Send for MediaDeviceInfo
impl !Sync for MediaDeviceInfo
impl Unpin for MediaDeviceInfo
impl !UnwindSafe for MediaDeviceInfo
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more