#[repr(transparent)]pub struct AudioHardwarePowerHint(pub u32);AudioHardware only.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: Self
pub const FavorSavingPower: Self
Trait Implementations§
Source§impl Clone for AudioHardwarePowerHint
impl Clone for AudioHardwarePowerHint
Source§fn clone(&self) -> AudioHardwarePowerHint
fn clone(&self) -> AudioHardwarePowerHint
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for AudioHardwarePowerHint
impl Debug for AudioHardwarePowerHint
Source§impl Encode for AudioHardwarePowerHint
Available on crate feature objc2 only.
impl Encode for AudioHardwarePowerHint
objc2 only.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 · 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§impl PartialOrd for AudioHardwarePowerHint
impl PartialOrd for AudioHardwarePowerHint
Source§impl RefEncode for AudioHardwarePowerHint
Available on crate feature objc2 only.
impl RefEncode for AudioHardwarePowerHint
objc2 only.