#[repr(transparent)]pub struct OH_AudioDevice_Role(pub c_uint);Available on crate feature
api-12 only.Expand description
Defines the audio device device role.
Available since API-level: 12
Tuple Fields§
§0: c_uintImplementations§
Source§impl OH_AudioDevice_Role
impl OH_AudioDevice_Role
Sourcepub const AUDIO_DEVICE_ROLE_INPUT: OH_AudioDevice_Role
pub const AUDIO_DEVICE_ROLE_INPUT: OH_AudioDevice_Role
Input role.
Sourcepub const AUDIO_DEVICE_ROLE_OUTPUT: OH_AudioDevice_Role
pub const AUDIO_DEVICE_ROLE_OUTPUT: OH_AudioDevice_Role
Output role.
Trait Implementations§
Source§impl Clone for OH_AudioDevice_Role
impl Clone for OH_AudioDevice_Role
Source§fn clone(&self) -> OH_AudioDevice_Role
fn clone(&self) -> OH_AudioDevice_Role
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_Role
impl Debug for OH_AudioDevice_Role
Source§impl Hash for OH_AudioDevice_Role
impl Hash for OH_AudioDevice_Role
Source§impl PartialEq for OH_AudioDevice_Role
impl PartialEq for OH_AudioDevice_Role
Source§fn eq(&self, other: &OH_AudioDevice_Role) -> bool
fn eq(&self, other: &OH_AudioDevice_Role) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for OH_AudioDevice_Role
impl Eq for OH_AudioDevice_Role
impl StructuralPartialEq for OH_AudioDevice_Role
Auto Trait Implementations§
impl Freeze for OH_AudioDevice_Role
impl RefUnwindSafe for OH_AudioDevice_Role
impl Send for OH_AudioDevice_Role
impl Sync for OH_AudioDevice_Role
impl Unpin for OH_AudioDevice_Role
impl UnsafeUnpin for OH_AudioDevice_Role
impl UnwindSafe for OH_AudioDevice_Role
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