Trait TModule
Source pub trait TModule {
Show 14 methods
// Required methods
fn init(&self, info: Arc<RwLock<RefModule>>) -> Result<(), String>;
fn get_name(&self) -> String;
fn get_desc(&self) -> String;
fn init_settings(&self, data: &mut Data);
fn init_element_settings(&self, data: &mut Data);
fn init_element(&self, element_row: Arc<RwLock<Element>>);
fn step_element(
&self,
element_row: Arc<RwLock<Element>>,
control_flow: &mut ControlFlow,
storage: &mut Storage,
);
fn accept_extension(&self, filename: &str) -> bool;
fn accept_url(&self, url: String) -> bool;
fn accepted_protocols(&self) -> Vec<String>;
fn init_location(
&self,
location_ref: Arc<RwLock<RefLocation>>,
data: FileOrData,
);
fn step_location(
&self,
location_row: Arc<RwLock<Location>>,
control_flow: &mut ControlFlow,
storage: &mut Storage,
);
fn notify(&self, _ref: Ref, event: Event);
fn c(&self) -> Box<dyn TModule>;
}