pub enum ContextType {
Unspecified = 1,
Conversational = 2,
Media = 4,
Game = 8,
Instructional = 16,
VoiceAssistants = 32,
Live = 64,
SoundEffects = 128,
Notifications = 256,
Ringtone = 512,
Alerts = 1_024,
EmergencyAlarm = 2_048,
}
Variants§
Unspecified = 1
Conversational = 2
Media = 4
Game = 8
Instructional = 16
VoiceAssistants = 32
Live = 64
SoundEffects = 128
Notifications = 256
Ringtone = 512
Alerts = 1_024
EmergencyAlarm = 2_048
Implementations§
Source§impl ContextType
impl ContextType
Source§impl ContextType
impl ContextType
pub fn from_bits(v: u16) -> impl Iterator<Item = ContextType>
pub fn to_bits<'a>(it: impl Iterator<Item = &'a ContextType>) -> u16
Trait Implementations§
Source§impl Clone for ContextType
impl Clone for ContextType
Source§fn clone(&self) -> ContextType
fn clone(&self) -> ContextType
Returns a duplicate 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 ContextType
impl Debug for ContextType
Source§impl From<ContextType> for u16
impl From<ContextType> for u16
Source§fn from(v: ContextType) -> u16
fn from(v: ContextType) -> u16
Converts to this type from the input type.
Source§impl Hash for ContextType
impl Hash for ContextType
Source§impl PartialEq for ContextType
impl PartialEq for ContextType
Source§impl TryFrom<u16> for ContextType
impl TryFrom<u16> for ContextType
impl Copy for ContextType
impl Eq for ContextType
impl StructuralPartialEq for ContextType
Auto Trait Implementations§
impl Freeze for ContextType
impl RefUnwindSafe for ContextType
impl Send for ContextType
impl Sync for ContextType
impl Unpin for ContextType
impl UnwindSafe for ContextType
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