[][src]Enum gio::MemoryMonitorWarningLevel

#[non_exhaustive]pub enum MemoryMonitorWarningLevel {
    Low,
    Medium,
    Critical,
    // some variants omitted
}

Memory availability warning levels.

Note that because new values might be added, it is recommended that applications check MemoryMonitorWarningLevel as ranges, for example:

if (warning_level > G_MEMORY_MONITOR_WARNING_LEVEL_LOW)
  drop_caches ();

Variants (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.
Low

Memory on the device is low, processes should free up unneeded resources (for example, in-memory caches) so they can be used elsewhere.

Medium

Same as MemoryMonitorWarningLevel::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.

Critical

The system will soon start terminating processes to reclaim memory, including background processes.

Feature: v2_64

Trait Implementations

impl Clone for MemoryMonitorWarningLevel[src]

impl Copy for MemoryMonitorWarningLevel[src]

impl Debug for MemoryMonitorWarningLevel[src]

impl Display for MemoryMonitorWarningLevel[src]

impl Eq for MemoryMonitorWarningLevel[src]

impl<'a> FromValue<'a> for MemoryMonitorWarningLevel[src]

impl<'a> FromValueOptional<'a> for MemoryMonitorWarningLevel[src]

impl Hash for MemoryMonitorWarningLevel[src]

impl Ord for MemoryMonitorWarningLevel[src]

impl PartialEq<MemoryMonitorWarningLevel> for MemoryMonitorWarningLevel[src]

impl PartialOrd<MemoryMonitorWarningLevel> for MemoryMonitorWarningLevel[src]

impl SetValue for MemoryMonitorWarningLevel[src]

impl StaticType for MemoryMonitorWarningLevel[src]

impl StructuralEq for MemoryMonitorWarningLevel[src]

impl StructuralPartialEq for MemoryMonitorWarningLevel[src]

Auto Trait Implementations

impl RefUnwindSafe for MemoryMonitorWarningLevel

impl Send for MemoryMonitorWarningLevel

impl Sync for MemoryMonitorWarningLevel

impl Unpin for MemoryMonitorWarningLevel

impl UnwindSafe for MemoryMonitorWarningLevel

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToSendValue for T where
    T: ToValue + SetValue + Send + ?Sized

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T> ToValue for T where
    T: SetValue + ?Sized

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.