Type Definition muzzman_lib::types::MRef

source ·
pub type MRef = Arc<RwLock<RefModule>>;

Trait Implementations§

source§

impl TModuleInfo for MRef

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