VfsImpl

Trait VfsImpl 

Source
pub trait VfsImpl: ObjectImpl + ObjectSubclass<Type: IsA<Vfs>> {
    // Provided methods
    fn is_active(&self) -> bool { ... }
    fn get_file_for_path(&self, path: &Path) -> File { ... }
    fn get_file_for_uri(&self, uri: &str) -> File { ... }
    fn get_supported_uri_schemes(&self) -> &'static StrVRef { ... }
    fn parse_name(&self, parse_name: &str) -> File { ... }
}

Provided Methods§

Source

fn is_active(&self) -> bool

Checks if the VFS is active.

§Returns

true if construction of the @self was successful and it is now active.

Source

fn get_file_for_path(&self, path: &Path) -> File

Source

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

Source

fn get_supported_uri_schemes(&self) -> &'static StrVRef

Source

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

This operation never fails, but the returned object might not support any I/O operations if the @parse_name cannot be parsed by the #GVfs module.

§parse_name

a string to be parsed by the VFS module.

§Returns

a #GFile for the given @parse_name. Free the returned object with g_object_unref().

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§