Trait TElement
Source pub trait TElement {
Show 30 methods
// Required methods
fn get_session(&self) -> Result<Box<dyn TSession>, SessionError>;
fn get_meta(&self) -> Result<String, SessionError>;
fn set_meta(&self, meta: &str) -> Result<(), SessionError>;
fn get_element_data(&self) -> Result<Data, SessionError>;
fn set_element_data(&self, data: Data) -> Result<(), SessionError>;
fn get_module_data(&self) -> Result<Data, SessionError>;
fn set_module_data(&self, data: Data) -> Result<(), SessionError>;
fn get_module(&self) -> Result<Option<MRef>, SessionError>;
fn set_module(&self, module: Option<ModuleId>) -> Result<(), SessionError>;
fn resolv_module(&self) -> Result<bool, SessionError>;
fn init(&self) -> Result<bool, SessionError>;
fn get_url(&self) -> Result<Option<String>, SessionError>;
fn set_url(&self, url: Option<String>) -> Result<(), SessionError>;
fn get_statuses(&self) -> Result<Vec<String>, SessionError>;
fn set_statuses(&self, statuses: Vec<String>) -> Result<(), SessionError>;
fn get_status(&self) -> Result<usize, SessionError>;
fn get_status_msg(&self) -> Result<String, SessionError>;
fn set_status(&self, status: usize) -> Result<(), SessionError>;
fn get_data(&self) -> Result<FileOrData, SessionError>;
fn set_data(&self, data: FileOrData) -> Result<(), SessionError>;
fn get_progress(&self) -> Result<f32, SessionError>;
fn set_progress(&self, progress: f32) -> Result<(), SessionError>;
fn get_should_save(&self) -> Result<bool, SessionError>;
fn set_should_save(&self, should_save: bool) -> Result<(), SessionError>;
fn is_enabled(&self) -> Result<bool, SessionError>;
fn set_enabled(
&self,
enabled: bool,
storage: Option<Storage>,
) -> Result<(), SessionError>;
fn get_element_info(&self) -> Result<ElementInfo, SessionError>;
fn wait(&self) -> Result<(), SessionError>;
fn destroy(self) -> Result<ERow, SessionError>;
fn id(&self) -> ElementId;
}