#[repr(transparent)]pub struct OH_AudioRingerMode(pub c_uint);Available on crate features
api-12 and api-20 only.Expand description
Defines the ringer mode.
Available since API-level: 20
Tuple Fields§
§0: c_uintImplementations§
Source§impl OH_AudioRingerMode
impl OH_AudioRingerMode
Sourcepub const AUDIO_RINGER_MODE_SILENT: OH_AudioRingerMode
pub const AUDIO_RINGER_MODE_SILENT: OH_AudioRingerMode
Silent ringer mode.
Available since API-level: 20
Sourcepub const AUDIO_RINGER_MODE_VIBRATE: OH_AudioRingerMode
pub const AUDIO_RINGER_MODE_VIBRATE: OH_AudioRingerMode
Vibrate ringer mode.
Available since API-level: 20
Sourcepub const AUDIO_RINGER_MODE_NORMAL: OH_AudioRingerMode
pub const AUDIO_RINGER_MODE_NORMAL: OH_AudioRingerMode
Normal ringer mode.
Available since API-level: 20
Trait Implementations§
Source§impl Clone for OH_AudioRingerMode
impl Clone for OH_AudioRingerMode
Source§fn clone(&self) -> OH_AudioRingerMode
fn clone(&self) -> OH_AudioRingerMode
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_AudioRingerMode
impl Debug for OH_AudioRingerMode
Source§impl Hash for OH_AudioRingerMode
impl Hash for OH_AudioRingerMode
Source§impl PartialEq for OH_AudioRingerMode
impl PartialEq for OH_AudioRingerMode
Source§fn eq(&self, other: &OH_AudioRingerMode) -> bool
fn eq(&self, other: &OH_AudioRingerMode) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for OH_AudioRingerMode
impl Eq for OH_AudioRingerMode
impl StructuralPartialEq for OH_AudioRingerMode
Auto Trait Implementations§
impl Freeze for OH_AudioRingerMode
impl RefUnwindSafe for OH_AudioRingerMode
impl Send for OH_AudioRingerMode
impl Sync for OH_AudioRingerMode
impl Unpin for OH_AudioRingerMode
impl UnsafeUnpin for OH_AudioRingerMode
impl UnwindSafe for OH_AudioRingerMode
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