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
Required methods
fn 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
) -> SignalHandlerIdThis 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