#[repr(transparent)]pub struct IOPSLowBatteryWarningLevel(pub c_uint);Available on crate feature
ps only.Expand description
Tuple Fields§
§0: c_uintImplementations§
Source§impl IOPSLowBatteryWarningLevel
impl IOPSLowBatteryWarningLevel
Sourcepub const None: Self
pub const None: Self
The system is not in a low battery situation, or is on drawing from an external power source.
The system displays no low power warnings; neither should application clients of this API.
Sourcepub const Early: Self
pub const Early: Self
The battery can provide no more than 20 minutes of runtime.
OS X makes no guarantees that the system shall remain in Early Warning for 20 minutes. Batteries are frequently calibrated differently and may provide runtime for more, or less, than the estimated 20 minutes. OS X alerts the user by changing the color of BatteryMonitor to red. Warning the user is optional for full screen apps.
Trait Implementations§
Source§impl Clone for IOPSLowBatteryWarningLevel
impl Clone for IOPSLowBatteryWarningLevel
Source§fn clone(&self) -> IOPSLowBatteryWarningLevel
fn clone(&self) -> IOPSLowBatteryWarningLevel
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 IOPSLowBatteryWarningLevel
impl Debug for IOPSLowBatteryWarningLevel
Source§impl Encode for IOPSLowBatteryWarningLevel
Available on crate feature objc2 only.
impl Encode for IOPSLowBatteryWarningLevel
Available on crate feature
objc2 only.Source§impl Hash for IOPSLowBatteryWarningLevel
impl Hash for IOPSLowBatteryWarningLevel
Source§impl Ord for IOPSLowBatteryWarningLevel
impl Ord for IOPSLowBatteryWarningLevel
Source§fn cmp(&self, other: &IOPSLowBatteryWarningLevel) -> Ordering
fn cmp(&self, other: &IOPSLowBatteryWarningLevel) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialOrd for IOPSLowBatteryWarningLevel
impl PartialOrd for IOPSLowBatteryWarningLevel
Source§impl RefEncode for IOPSLowBatteryWarningLevel
Available on crate feature objc2 only.
impl RefEncode for IOPSLowBatteryWarningLevel
Available on crate feature
objc2 only.Source§const ENCODING_REF: Encoding
const ENCODING_REF: Encoding
The Objective-C type-encoding for a reference of this type. Read more
impl Copy for IOPSLowBatteryWarningLevel
impl Eq for IOPSLowBatteryWarningLevel
impl StructuralPartialEq for IOPSLowBatteryWarningLevel
Auto Trait Implementations§
impl Freeze for IOPSLowBatteryWarningLevel
impl RefUnwindSafe for IOPSLowBatteryWarningLevel
impl Send for IOPSLowBatteryWarningLevel
impl Sync for IOPSLowBatteryWarningLevel
impl Unpin for IOPSLowBatteryWarningLevel
impl UnwindSafe for IOPSLowBatteryWarningLevel
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> EncodeArgument for Twhere
T: Encode,
impl<T> EncodeArgument for Twhere
T: Encode,
Source§const ENCODING_ARGUMENT: Encoding = T::ENCODING
const ENCODING_ARGUMENT: Encoding = T::ENCODING
The Objective-C type-encoding for this type.
Source§impl<T> EncodeReturn for Twhere
T: Encode,
impl<T> EncodeReturn for Twhere
T: Encode,
Source§const ENCODING_RETURN: Encoding = T::ENCODING
const ENCODING_RETURN: Encoding = T::ENCODING
The Objective-C type-encoding for this type.