Struct medea_jason::platform::media_device_info::MediaDeviceInfo
source · pub struct MediaDeviceInfo { /* private fields */ }
Expand description
Representation of a MediaDeviceInfo ONLY for input devices.
Implementations§
source§impl MediaDeviceInfo
impl MediaDeviceInfo
sourcepub fn device_id(&self) -> String
pub fn device_id(&self) -> String
Returns a unique identifier of the device represented by this
MediaDeviceInfo
.
sourcepub const fn kind(&self) -> MediaDeviceKind
pub const fn kind(&self) -> MediaDeviceKind
Returns a kind of the device represented by this MediaDeviceInfo
.
sourcepub fn label(&self) -> String
pub fn label(&self) -> String
Returns a label describing the device represented by this
MediaDeviceInfo
(for example, “External USB Webcam”).
If the device has no associated label, then returns an empty string.
sourcepub fn group_id(&self) -> Option<String>
pub fn group_id(&self) -> Option<String>
Returns a group identifier of the device represented by this
MediaDeviceInfo
Two devices have the same group identifier if they belong to the same physical device. For example, the audio input and output devices representing the speaker and microphone of the same headset have the same groupId.
Trait Implementations§
source§impl Clone for MediaDeviceInfo
impl Clone for MediaDeviceInfo
source§fn clone(&self) -> MediaDeviceInfo
fn clone(&self) -> MediaDeviceInfo
Returns a copy of the value. Read more
1.0.0 · 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 MediaDeviceInfo
impl Debug for MediaDeviceInfo
source§impl TryFrom<DartHandle> for MediaDeviceInfo
impl TryFrom<DartHandle> for MediaDeviceInfo
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§
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