Trait gio::prelude::MemoryMonitorExt
source · pub trait MemoryMonitorExt: 'static {
// Required method
fn connect_low_memory_warning<F: Fn(&Self, MemoryMonitorWarningLevel) + 'static>(
&self,
f: F
) -> SignalHandlerId;
}
Available on crate feature
v2_64
only.Expand description
Required Methods§
sourcefn connect_low_memory_warning<F: Fn(&Self, MemoryMonitorWarningLevel) + 'static>(
&self,
f: F
) -> SignalHandlerId
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.
level
the MemoryMonitorWarningLevel
warning level