Trait gio::prelude::MemoryMonitorExt[][src]

pub trait MemoryMonitorExt: 'static {
    fn connect_low_memory_warning<F: Fn(&Self, MemoryMonitorWarningLevel) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId; }
Expand description

Trait containing all MemoryMonitor methods.

Implementors

MemoryMonitor

Required methods

This is supported on crate feature v2_64 only.

Emitted when the system is running low on free memory. The signal handler should then take the appropriate action depending on the warning level. See the MemoryMonitorWarningLevel documentation for details.

level

the MemoryMonitorWarningLevel warning level

Implementors