Trait gio::prelude::VfsExt

source ·
pub trait VfsExt: 'static {
    // Required methods
    fn file_for_path(&self, path: &str) -> File;
    fn file_for_uri(&self, uri: &str) -> File;
    fn supported_uri_schemes(&self) -> Vec<GString>;
    fn is_active(&self) -> bool;
    fn parse_name(&self, parse_name: &str) -> File;
    fn register_uri_scheme(
        &self,
        scheme: &str,
        uri_func: Option<Box_<dyn Fn(&Vfs, &str) -> File + 'static>>,
        parse_name_func: Option<Box_<dyn Fn(&Vfs, &str) -> File + 'static>>
    ) -> bool;
    fn unregister_uri_scheme(&self, scheme: &str) -> bool;
}

Required Methods§

source

fn file_for_path(&self, path: &str) -> File

source

fn file_for_uri(&self, uri: &str) -> File

source

fn supported_uri_schemes(&self) -> Vec<GString>

source

fn is_active(&self) -> bool

source

fn parse_name(&self, parse_name: &str) -> File

source

fn register_uri_scheme( &self, scheme: &str, uri_func: Option<Box_<dyn Fn(&Vfs, &str) -> File + 'static>>, parse_name_func: Option<Box_<dyn Fn(&Vfs, &str) -> File + 'static>> ) -> bool

Available on crate feature v2_50 only.
source

fn unregister_uri_scheme(&self, scheme: &str) -> bool

Available on crate feature v2_50 only.

Implementors§

source§

impl<O: IsA<Vfs>> VfsExt for O