pub trait TModuleInfo {
Show 24 methods fn get_session(&self) -> Result<Box<dyn TSession>, SessionError>; fn get_name(&self) -> Result<String, SessionError>; fn set_name(&self, name: impl Into<String>) -> Result<(), SessionError>; fn get_default_name(&self) -> Result<String, SessionError>; fn get_desc(&self) -> Result<String, SessionError>; fn set_desc(&self, desc: impl Into<String>) -> Result<(), SessionError>; fn get_default_desc(&self) -> Result<String, SessionError>; fn get_proxy(&self) -> Result<usize, SessionError>; fn set_proxy(&self, proxy: usize) -> Result<(), SessionError>; fn get_settings(&self) -> Result<Data, SessionError>; fn set_settings(&self, settings: Data) -> Result<(), SessionError>; fn get_element_settings(&self) -> Result<Data, SessionError>; fn set_element_settings(&self, settings: Data) -> Result<(), SessionError>; fn register_action(
        &self,
        name: String,
        values: Vec<(String, Value)>,
        callback: fn(_: MRef, values: Vec<Type>)
    ) -> Result<(), SessionError>; fn remove_action(&self, name: String) -> Result<(), SessionError>; fn run_action(
        &self,
        name: String,
        data: Vec<Type>
    ) -> Result<(), SessionError>; fn step_element(
        &self,
        element_info: &ElementId,
        control_flow: ControlFlow,
        storage: Storage
    ) -> Result<(ControlFlow, Storage), SessionError>; fn step_location(
        &self,
        location_info: &LocationId,
        control_flow: ControlFlow,
        storage: Storage
    ) -> Result<(ControlFlow, Storage), SessionError>; fn accept_url(&self, url: Url) -> Result<bool, SessionError>; fn accept_extension(
        &self,
        filename: impl Into<String>
    ) -> Result<bool, SessionError>; fn init_element(&self, element_info: &ElementId) -> Result<(), SessionError>; fn init_location(
        &self,
        location_info: &LocationId,
        data: FileOrData
    ) -> Result<(), SessionError>; fn notify(&self, info: ID, event: Event) -> Result<(), SessionError>; fn id(&self) -> ModuleId;
}

Required Methods§

source

fn get_session(&self) -> Result<Box<dyn TSession>, SessionError>

source

fn get_name(&self) -> Result<String, SessionError>

source

fn set_name(&self, name: impl Into<String>) -> Result<(), SessionError>

source

fn get_default_name(&self) -> Result<String, SessionError>

source

fn get_desc(&self) -> Result<String, SessionError>

source

fn set_desc(&self, desc: impl Into<String>) -> Result<(), SessionError>

source

fn get_default_desc(&self) -> Result<String, SessionError>

source

fn get_proxy(&self) -> Result<usize, SessionError>

source

fn set_proxy(&self, proxy: usize) -> Result<(), SessionError>

source

fn get_settings(&self) -> Result<Data, SessionError>

source

fn set_settings(&self, settings: Data) -> Result<(), SessionError>

source

fn get_element_settings(&self) -> Result<Data, SessionError>

source

fn set_element_settings(&self, settings: Data) -> Result<(), SessionError>

source

fn register_action(
    &self,
    name: String,
    values: Vec<(String, Value)>,
    callback: fn(_: MRef, values: Vec<Type>)
) -> Result<(), SessionError>

source

fn remove_action(&self, name: String) -> Result<(), SessionError>

source

fn run_action(&self, name: String, data: Vec<Type>) -> Result<(), SessionError>

source

fn step_element(
    &self,
    element_info: &ElementId,
    control_flow: ControlFlow,
    storage: Storage
) -> Result<(ControlFlow, Storage), SessionError>

source

fn step_location(
    &self,
    location_info: &LocationId,
    control_flow: ControlFlow,
    storage: Storage
) -> Result<(ControlFlow, Storage), SessionError>

source

fn accept_url(&self, url: Url) -> Result<bool, SessionError>

source

fn accept_extension(
    &self,
    filename: impl Into<String>
) -> Result<bool, SessionError>

source

fn init_element(&self, element_info: &ElementId) -> Result<(), SessionError>

source

fn init_location(
    &self,
    location_info: &LocationId,
    data: FileOrData
) -> Result<(), SessionError>

source

fn notify(&self, info: ID, event: Event) -> Result<(), SessionError>

source

fn id(&self) -> ModuleId

Implementors§