#[repr(transparent)]pub struct OH_AudioStream_DeviceChangeReason(pub c_uint);Available on crate feature
api-11 only.Expand description
Defines reason for device changes of one audio stream.
Available since API-level: 11
Tuple Fields§
§0: c_uintImplementations§
Source§impl OH_AudioStream_DeviceChangeReason
impl OH_AudioStream_DeviceChangeReason
pub const REASON_UNKNOWN: OH_AudioStream_DeviceChangeReason
pub const REASON_NEW_DEVICE_AVAILABLE: OH_AudioStream_DeviceChangeReason
pub const REASON_OLD_DEVICE_UNAVAILABLE: OH_AudioStream_DeviceChangeReason
pub const REASON_OVERRODE: OH_AudioStream_DeviceChangeReason
Sourcepub const REASON_SESSION_ACTIVATED: OH_AudioStream_DeviceChangeReason
Available on crate feature api-20 only.
pub const REASON_SESSION_ACTIVATED: OH_AudioStream_DeviceChangeReason
api-20 only.Device information when the audio session is activated.
Available since API-level: 20
Sourcepub const REASON_STREAM_PRIORITY_CHANGED: OH_AudioStream_DeviceChangeReason
Available on crate feature api-20 only.
pub const REASON_STREAM_PRIORITY_CHANGED: OH_AudioStream_DeviceChangeReason
api-20 only.There is a higher-priority stream, causing the system device to change.
Available since API-level: 20
Trait Implementations§
Source§impl Clone for OH_AudioStream_DeviceChangeReason
impl Clone for OH_AudioStream_DeviceChangeReason
Source§fn clone(&self) -> OH_AudioStream_DeviceChangeReason
fn clone(&self) -> OH_AudioStream_DeviceChangeReason
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 PartialEq for OH_AudioStream_DeviceChangeReason
impl PartialEq for OH_AudioStream_DeviceChangeReason
Source§fn eq(&self, other: &OH_AudioStream_DeviceChangeReason) -> bool
fn eq(&self, other: &OH_AudioStream_DeviceChangeReason) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for OH_AudioStream_DeviceChangeReason
impl Eq for OH_AudioStream_DeviceChangeReason
impl StructuralPartialEq for OH_AudioStream_DeviceChangeReason
Auto Trait Implementations§
impl Freeze for OH_AudioStream_DeviceChangeReason
impl RefUnwindSafe for OH_AudioStream_DeviceChangeReason
impl Send for OH_AudioStream_DeviceChangeReason
impl Sync for OH_AudioStream_DeviceChangeReason
impl Unpin for OH_AudioStream_DeviceChangeReason
impl UnsafeUnpin for OH_AudioStream_DeviceChangeReason
impl UnwindSafe for OH_AudioStream_DeviceChangeReason
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