pub trait FileMonitorExt: IsA<FileMonitor> + 'static {
// Provided methods
fn cancel(&self) -> bool { ... }
fn emit_event(
&self,
child: &impl IsA<File>,
other_file: Option<&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>(&self, f: F) -> SignalHandlerId
where F: Fn(&Self, &File, Option<&File>, FileMonitorEvent) + 'static { ... }
fn connect_cancelled_notify<F>(&self, f: F) -> SignalHandlerId
where F: Fn(&Self) + 'static { ... }
fn connect_rate_limit_notify<F>(&self, f: F) -> SignalHandlerId
where F: Fn(&Self) + 'static { ... }
}Provided Methods§
fn cancel(&self) -> bool
fn emit_event( &self, child: &impl IsA<File>, other_file: Option<&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>(&self, f: F) -> SignalHandlerId
fn connect_cancelled_notify<F>(&self, f: F) -> SignalHandlerIdwhere
F: Fn(&Self) + 'static,
fn connect_rate_limit_notify<F>(&self, f: F) -> SignalHandlerIdwhere
F: Fn(&Self) + 'static,
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".