TModule

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>;
}

Required Methods§

Source

fn init(&self, info: Arc<RwLock<RefModule>>) -> Result<(), String>

Source

fn get_name(&self) -> String

Source

fn get_desc(&self) -> String

Source

fn init_settings(&self, data: &mut Data)

Source

fn init_element_settings(&self, data: &mut Data)

Source

fn init_element(&self, element_row: Arc<RwLock<Element>>)

Source

fn step_element( &self, element_row: Arc<RwLock<Element>>, control_flow: &mut ControlFlow, storage: &mut Storage, )

Source

fn accept_extension(&self, filename: &str) -> bool

Source

fn accept_url(&self, url: String) -> bool

Source

fn accepted_protocols(&self) -> Vec<String>

Source

fn init_location( &self, location_ref: Arc<RwLock<RefLocation>>, data: FileOrData, )

Source

fn step_location( &self, location_row: Arc<RwLock<Location>>, control_flow: &mut ControlFlow, storage: &mut Storage, )

Source

fn notify(&self, _ref: Ref, event: Event)

Source

fn c(&self) -> Box<dyn TModule>

Implementations on Foreign Types§

Source§

impl TModule for Arc<RawModule>

Source§

fn init(&self, info: Arc<RwLock<RefModule>>) -> Result<(), String>

Source§

fn get_name(&self) -> String

Source§

fn get_desc(&self) -> String

Source§

fn init_settings(&self, data: &mut Data)

Source§

fn init_element_settings(&self, data: &mut Data)

Source§

fn init_element(&self, element: Arc<RwLock<Element>>)

Source§

fn step_element( &self, element: Arc<RwLock<Element>>, control_flow: &mut ControlFlow, storage: &mut Storage, )

Source§

fn accept_extension(&self, filename: &str) -> bool

Source§

fn accept_url(&self, url: String) -> bool

Source§

fn accepted_protocols(&self) -> Vec<String>

Source§

fn init_location(&self, location: Arc<RwLock<RefLocation>>, data: FileOrData)

Source§

fn notify(&self, info: Ref, event: Event)

Source§

fn step_location( &self, location: Arc<RwLock<Location>>, control_flow: &mut ControlFlow, storage: &mut Storage, )

Source§

fn c(&self) -> Box<dyn TModule>

Implementors§