pub enum PowerPreference {
None,
LowPower,
HighPerformance,
}Expand description
The power-usage preference for graphics adapters.
Variants§
None
No power preference in which adapter should be chosen.
This is the default.
LowPower
The backend will prefer low power adapters over high performance ones.
HighPerformance
The backend will prefer adapters that are high performance.
Trait Implementations§
Source§impl Clone for PowerPreference
impl Clone for PowerPreference
Source§fn clone(&self) -> PowerPreference
fn clone(&self) -> PowerPreference
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 PowerPreference
impl Debug for PowerPreference
Source§impl Default for PowerPreference
impl Default for PowerPreference
Source§fn default() -> PowerPreference
fn default() -> PowerPreference
Returns the “default value” for a type. Read more
Source§impl PartialEq for PowerPreference
impl PartialEq for PowerPreference
impl Copy for PowerPreference
impl StructuralPartialEq for PowerPreference
Auto Trait Implementations§
impl Freeze for PowerPreference
impl RefUnwindSafe for PowerPreference
impl Send for PowerPreference
impl Sync for PowerPreference
impl Unpin for PowerPreference
impl UnsafeUnpin for PowerPreference
impl UnwindSafe for PowerPreference
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