#[repr(transparent)]pub struct OH_AudioDevice_Usage(pub c_uint);Available on crate feature
api-12 only.Expand description
Defines the audio device usage.
Available since API-level: 12
Tuple Fields§
§0: c_uintImplementations§
Source§impl OH_AudioDevice_Usage
impl OH_AudioDevice_Usage
Sourcepub const AUDIO_DEVICE_USAGE_MEDIA_OUTPUT: OH_AudioDevice_Usage
pub const AUDIO_DEVICE_USAGE_MEDIA_OUTPUT: OH_AudioDevice_Usage
Device used for media ouput.
Available since API-level: 12
Sourcepub const AUDIO_DEVICE_USAGE_MEDIA_INPUT: OH_AudioDevice_Usage
pub const AUDIO_DEVICE_USAGE_MEDIA_INPUT: OH_AudioDevice_Usage
Device used for media input.
Available since API-level: 12
Sourcepub const AUDIO_DEVICE_USAGE_MEDIA_ALL: OH_AudioDevice_Usage
pub const AUDIO_DEVICE_USAGE_MEDIA_ALL: OH_AudioDevice_Usage
Device used for media, including input and output.
Available since API-level: 12
Sourcepub const AUDIO_DEVICE_USAGE_CALL_OUTPUT: OH_AudioDevice_Usage
pub const AUDIO_DEVICE_USAGE_CALL_OUTPUT: OH_AudioDevice_Usage
Device used for call output.
Available since API-level: 12
Sourcepub const AUDIO_DEVICE_USAGE_CALL_INPUT: OH_AudioDevice_Usage
pub const AUDIO_DEVICE_USAGE_CALL_INPUT: OH_AudioDevice_Usage
Device used for call input.
Available since API-level: 12
Sourcepub const AUDIO_DEVICE_USAGE_CALL_ALL: OH_AudioDevice_Usage
pub const AUDIO_DEVICE_USAGE_CALL_ALL: OH_AudioDevice_Usage
Device used for call, including input and output.
Available since API-level: 12
Trait Implementations§
Source§impl Clone for OH_AudioDevice_Usage
impl Clone for OH_AudioDevice_Usage
Source§fn clone(&self) -> OH_AudioDevice_Usage
fn clone(&self) -> OH_AudioDevice_Usage
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 OH_AudioDevice_Usage
impl Debug for OH_AudioDevice_Usage
Source§impl Hash for OH_AudioDevice_Usage
impl Hash for OH_AudioDevice_Usage
Source§impl PartialEq for OH_AudioDevice_Usage
impl PartialEq for OH_AudioDevice_Usage
Source§fn eq(&self, other: &OH_AudioDevice_Usage) -> bool
fn eq(&self, other: &OH_AudioDevice_Usage) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for OH_AudioDevice_Usage
impl Eq for OH_AudioDevice_Usage
impl StructuralPartialEq for OH_AudioDevice_Usage
Auto Trait Implementations§
impl Freeze for OH_AudioDevice_Usage
impl RefUnwindSafe for OH_AudioDevice_Usage
impl Send for OH_AudioDevice_Usage
impl Sync for OH_AudioDevice_Usage
impl Unpin for OH_AudioDevice_Usage
impl UnsafeUnpin for OH_AudioDevice_Usage
impl UnwindSafe for OH_AudioDevice_Usage
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