pub trait TModuleInfo {
Show 25 methods
// Required 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(Arc<RwLock<RefModule>>, 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: String) -> Result<bool, SessionError>;
fn accept_extension(
&self,
filename: impl Into<String>,
) -> Result<bool, SessionError>;
fn accepted_protocols(&self) -> Result<Vec<String>, 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§
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(Arc<RwLock<RefModule>>, 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: String) -> Result<bool, SessionError>
fn accept_extension( &self, filename: impl Into<String>, ) -> Result<bool, SessionError>
fn accepted_protocols(&self) -> Result<Vec<String>, 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
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.