Enum gio::MemoryMonitorWarningLevel [−][src]
#[non_exhaustive]
pub enum MemoryMonitorWarningLevel {
Low,
Medium,
Critical,
// some variants omitted
}v2_64 only.Expand description
Memory availability warning levels.
Note that because new values might be added, it is recommended that applications check
MemoryMonitorWarningLevel as ranges, for example:
⚠️ The following code is in C ⚠️
if (warning_level > G_MEMORY_MONITOR_WARNING_LEVEL_LOW)
drop_caches ();
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
Memory on the device is low, processes should free up unneeded resources (for example, in-memory caches) so they can be used elsewhere.
Same as Low
but the device has even less free memory, so processes should try harder to free
up unneeded resources. If your process does not need to stay running, it is a
good time for it to quit.
The system will soon start terminating processes to reclaim memory, including background processes.
Trait Implementations
type Checker = GenericValueTypeChecker<Self>
type Checker = GenericValueTypeChecker<Self>Value type checker.
Get the contained value from a Value. Read more
This method tests for self and other values to be equal, and is used
by ==. Read more
This method tests for !=.
This method returns an ordering between self and other values if one exists. Read more
This method tests less than (for self and other) and is used by the < operator. Read more
This method tests less than or equal to (for self and other) and is used by the <=
operator. Read more
This method tests greater than (for self and other) and is used by the > operator. Read more
Returns the type identifier of Self.
Auto Trait Implementations
impl RefUnwindSafe for MemoryMonitorWarningLevelimpl Send for MemoryMonitorWarningLevelimpl Sync for MemoryMonitorWarningLevelimpl Unpin for MemoryMonitorWarningLevelimpl UnwindSafe for MemoryMonitorWarningLevelBlanket Implementations
Mutably borrows from an owned value. Read more
Returns a SendValue clone of self.