[][src]Trait gio::MemoryMonitorExt

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

Trait containing all MemoryMonitor methods.

Feature: v2_64

Implementors

MemoryMonitor

Required methods

fn connect_low_memory_warning<F: Fn(&Self, MemoryMonitorWarningLevel) + 'static>(
    &self,
    f: F
) -> SignalHandlerId

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.

Feature: v2_64

level

the MemoryMonitorWarningLevel warning level

Loading content...

Implementors

impl<O: IsA<MemoryMonitor>> MemoryMonitorExt for O[src]

Loading content...