Trait gio::prelude::FileMonitorExt
source · [−]pub trait FileMonitorExt: 'static {
fn cancel(&self) -> bool;
fn emit_event(
&self,
child: &impl IsA<File>,
other_file: &impl IsA<File>,
event_type: FileMonitorEvent
);
fn is_cancelled(&self) -> bool;
fn set_rate_limit(&self, limit_msecs: i32);
fn rate_limit(&self) -> i32;
fn connect_changed<F: Fn(&Self, &File, Option<&File>, FileMonitorEvent) + 'static>(
&self,
f: F
) -> SignalHandlerId;
fn connect_cancelled_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId;
fn connect_rate_limit_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId;
}
Required Methods
sourcefn emit_event(
fn emit_event(
&self,
child: &impl IsA<File>,
other_file: &impl IsA<File>,
event_type: FileMonitorEvent
)
source
fn is_cancelled(&self) -> bool
source
fn set_rate_limit(&self, limit_msecs: i32)
source
fn rate_limit(&self) -> i32
sourcefn connect_changed<F: Fn(&Self, &File, Option<&File>, FileMonitorEvent) + 'static>(
fn connect_changed<F: Fn(&Self, &File, Option<&File>, FileMonitorEvent) + 'static>(
&self,
f: F
) -> SignalHandlerId
sourcefn connect_cancelled_notify<F: Fn(&Self) + 'static>(
fn connect_cancelled_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
sourcefn connect_rate_limit_notify<F: Fn(&Self) + 'static>(