[][src]Trait rair_io::RIOPlugin

pub trait RIOPlugin {
    fn get_metadata(&self) -> &'static RIOPluginMetadata;
fn open(
        &mut self,
        uri: &str,
        flags: IoMode
    ) -> Result<RIOPluginDesc, IoError>;
fn accept_uri(&self, uri: &str) -> bool; }

This trait should be implemented by object that allows plugin to open files or check metadata of the plugin.

Required methods

fn get_metadata(&self) -> &'static RIOPluginMetadata

Retrieve reference to the plugin metadata

fn open(&mut self, uri: &str, flags: IoMode) -> Result<RIOPluginDesc, IoError>

Open a file given a uri (extension://file path) using the mode specified by flags.

fn accept_uri(&self, uri: &str) -> bool

Check if the given file can be opened wit the current plugin (only by checking the uri without opening the file)

Loading content...

Implementors

Loading content...