Skip to main content

FileMonitorExt

Trait FileMonitorExt 

Source
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§

Source

fn cancel(&self) -> bool

Source

fn emit_event( &self, child: &impl IsA<File>, other_file: Option<&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

Source

fn connect_changed<F>(&self, f: F) -> SignalHandlerId
where F: Fn(&Self, &File, Option<&File>, FileMonitorEvent) + 'static,

Source

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

Source

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

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl<O> FileMonitorExt for O
where O: IsA<FileMonitor>,