Enum wry::MemoryUsageLevel
source · #[non_exhaustive]pub enum MemoryUsageLevel {
Normal,
Low,
}
Expand description
The memory usage target level. There are two levels ‘Low’ and ‘Normal’ and the default level is ‘Normal’. When the application is going inactive, setting the level to ‘Low’ can significantly reduce the application’s memory consumption.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Normal
The ‘Normal’ memory usage. Applications should set this level when they are becoming active.
Low
The ‘Low’ memory usage. Applications can reduce memory comsumption by setting this level when they are becoming inactive.
Trait Implementations§
source§impl Clone for MemoryUsageLevel
impl Clone for MemoryUsageLevel
source§fn clone(&self) -> MemoryUsageLevel
fn clone(&self) -> MemoryUsageLevel
Returns a copy 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 MemoryUsageLevel
impl Debug for MemoryUsageLevel
source§impl Default for MemoryUsageLevel
impl Default for MemoryUsageLevel
source§fn default() -> MemoryUsageLevel
fn default() -> MemoryUsageLevel
Returns the “default value” for a type. Read more
source§impl Hash for MemoryUsageLevel
impl Hash for MemoryUsageLevel
source§impl PartialEq for MemoryUsageLevel
impl PartialEq for MemoryUsageLevel
source§fn eq(&self, other: &MemoryUsageLevel) -> bool
fn eq(&self, other: &MemoryUsageLevel) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for MemoryUsageLevel
impl Eq for MemoryUsageLevel
impl StructuralPartialEq for MemoryUsageLevel
Auto Trait Implementations§
impl Freeze for MemoryUsageLevel
impl RefUnwindSafe for MemoryUsageLevel
impl Send for MemoryUsageLevel
impl Sync for MemoryUsageLevel
impl Unpin for MemoryUsageLevel
impl UnwindSafe for MemoryUsageLevel
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