Trait ContentProviderExt

Source
pub trait ContentProviderExt:
    IsA<ContentProvider>
    + Sealed
    + 'static {
    // Provided methods
    fn content_changed(&self) { ... }
    fn formats(&self) -> ContentFormats { ... }
    fn storable_formats(&self) -> ContentFormats { ... }
    fn write_mime_type_async<P: FnOnce(Result<(), Error>) + 'static>(
        &self,
        mime_type: &str,
        stream: &impl IsA<OutputStream>,
        io_priority: Priority,
        cancellable: Option<&impl IsA<Cancellable>>,
        callback: P,
    ) { ... }
    fn write_mime_type_future(
        &self,
        mime_type: &str,
        stream: &(impl IsA<OutputStream> + Clone + 'static),
        io_priority: Priority,
    ) -> Pin<Box_<dyn Future<Output = Result<(), Error>> + 'static>> { ... }
    fn connect_content_changed<F: Fn(&Self) + 'static>(
        &self,
        f: F,
    ) -> SignalHandlerId { ... }
    fn connect_formats_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F,
    ) -> SignalHandlerId { ... }
    fn connect_storable_formats_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F,
    ) -> SignalHandlerId { ... }
}

Provided Methods§

Source

fn content_changed(&self)

Source

fn formats(&self) -> ContentFormats

Source

fn storable_formats(&self) -> ContentFormats

Source

fn write_mime_type_async<P: FnOnce(Result<(), Error>) + 'static>( &self, mime_type: &str, stream: &impl IsA<OutputStream>, io_priority: Priority, cancellable: Option<&impl IsA<Cancellable>>, callback: P, )

Source

fn write_mime_type_future( &self, mime_type: &str, stream: &(impl IsA<OutputStream> + Clone + 'static), io_priority: Priority, ) -> Pin<Box_<dyn Future<Output = Result<(), Error>> + 'static>>

Source

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

Source

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

Source

fn connect_storable_formats_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§