Trait BasePlugin
Source pub trait BasePlugin {
Show 14 methods
// Required methods
fn get_name(&self) -> String;
fn get_author(&self) -> String;
fn get_args(&mut self, args: HashMap<String, String>) -> Vec<String>;
fn get_filter_name(&self) -> String;
fn get_media_type(&self) -> MediaType;
fn validate_user_args(
&mut self,
args: HashMap<String, String>,
) -> Result<bool, &'static str>;
// Provided methods
fn get_allow_custom_args(&self) -> Vec<&'static str> { ... }
fn print_log(&self, level: PrintLogLevel, log: &str) { ... }
fn register_task(&self) -> Vec<Timer> { ... }
fn register_message_keys(&self) -> Vec<EventMessageAction> { ... }
fn execute_task(&mut self, _tid: u32) { ... }
fn execute_message(&mut self, action: i32, body: String) { ... }
fn get_instance_type(&mut self) -> InstanceType { ... }
fn hook_created(&mut self) -> i32 { ... }
}