[go: up one dir, main page]

MediaFileExt

Trait MediaFileExt 

Source
pub trait MediaFileExt: IsA<MediaFile> + 'static {
    // Provided methods
    fn clear(&self) { ... }
    fn file(&self) -> Option<File> { ... }
    fn input_stream(&self) -> Option<InputStream> { ... }
    fn set_file(&self, file: Option<&impl IsA<File>>) { ... }
    fn set_filename(&self, filename: Option<impl AsRef<Path>>) { ... }
    fn set_input_stream(&self, stream: Option<&impl IsA<InputStream>>) { ... }
    fn set_resource(&self, resource_path: Option<&str>) { ... }
    fn connect_file_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F,
    ) -> SignalHandlerId { ... }
    fn connect_input_stream_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F,
    ) -> SignalHandlerId { ... }
}

Provided Methods§

Source

fn clear(&self)

Source

fn file(&self) -> Option<File>

Source

fn input_stream(&self) -> Option<InputStream>

Source

fn set_file(&self, file: Option<&impl IsA<File>>)

Source

fn set_filename(&self, filename: Option<impl AsRef<Path>>)

Source

fn set_input_stream(&self, stream: Option<&impl IsA<InputStream>>)

Source

fn set_resource(&self, resource_path: Option<&str>)

Source

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

Source

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