[go: up one dir, main page]

gio::prelude

Trait FileMonitorExt

Source
pub trait FileMonitorExt:
    IsA<FileMonitor>
    + Sealed
    + 'static {
    // Provided methods
    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 { ... }
}

Provided Methods§

Source

fn cancel(&self) -> bool

Source

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

Source

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

Source

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

Source

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

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§