[][src]Trait gio::VfsExt

pub trait VfsExt: 'static {
    fn get_file_for_path(&self, path: &str) -> Option<File>;
fn get_file_for_uri(&self, uri: &str) -> Option<File>;
fn get_supported_uri_schemes(&self) -> Vec<GString>;
fn is_active(&self) -> bool;
fn parse_name(&self, parse_name: &str) -> Option<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

fn get_file_for_path(&self, path: &str) -> Option<File>

fn get_file_for_uri(&self, uri: &str) -> Option<File>

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

fn is_active(&self) -> bool

fn parse_name(&self, parse_name: &str) -> Option<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

Loading content...

Implementors

impl<O: IsA<Vfs>> VfsExt for O[src]

Loading content...