#[repr(transparent)]pub struct AudioHardwarePowerHint(pub u32);Expand description
The values for kAudioHardwarePropertyPowerHint
The system object property, kAudioHardwarePropertyPowerHint, allows a process to to indicate how aggressive the system can be with optimizations that save power. Note that the value of this property can be set in an application’s info.plist using the key, “AudioHardwarePowerHint”. The values for this key are the strings that correspond to the values in the enum.
This is the default value and it indicates that the system will not make any power optimizations that compromise latency or quality in order to save power. The info.plist value is “None” or the “AudioHardwarePowerHint” entry can be omitted entirely.
The system will choose to save power even at the expense of latency. The info.plist value is “Favor Saving Power”
See also Apple’s documentation
Tuple Fields§
§0: u32Implementations§
Source§impl AudioHardwarePowerHint
impl AudioHardwarePowerHint
pub const None: AudioHardwarePowerHint
pub const FavorSavingPower: AudioHardwarePowerHint
Trait Implementations§
Source§impl Clone for AudioHardwarePowerHint
impl Clone for AudioHardwarePowerHint
Source§fn clone(&self) -> AudioHardwarePowerHint
fn clone(&self) -> AudioHardwarePowerHint
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for AudioHardwarePowerHint
Source§impl Debug for AudioHardwarePowerHint
impl Debug for AudioHardwarePowerHint
impl Eq for AudioHardwarePowerHint
Source§impl Hash for AudioHardwarePowerHint
impl Hash for AudioHardwarePowerHint
Source§impl Ord for AudioHardwarePowerHint
impl Ord for AudioHardwarePowerHint
Source§fn cmp(&self, other: &AudioHardwarePowerHint) -> Ordering
fn cmp(&self, other: &AudioHardwarePowerHint) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialEq for AudioHardwarePowerHint
impl PartialEq for AudioHardwarePowerHint
Source§fn eq(&self, other: &AudioHardwarePowerHint) -> bool
fn eq(&self, other: &AudioHardwarePowerHint) -> bool
self and other values to be equal, and is used by ==.