BasePlugin

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 { ... }
}

Required Methods§

Source

fn get_name(&self) -> String

Source

fn get_author(&self) -> String

Source

fn get_args(&mut self, args: HashMap<String, String>) -> Vec<String>

Source

fn get_filter_name(&self) -> String

Source

fn get_media_type(&self) -> MediaType

Source

fn validate_user_args( &mut self, args: HashMap<String, String>, ) -> Result<bool, &'static str>

Provided Methods§

Source

fn get_allow_custom_args(&self) -> Vec<&'static str>

Source

fn print_log(&self, level: PrintLogLevel, log: &str)

Source

fn register_task(&self) -> Vec<Timer>

Source

fn register_message_keys(&self) -> Vec<EventMessageAction>

Source

fn execute_task(&mut self, _tid: u32)

Source

fn execute_message(&mut self, action: i32, body: String)

Source

fn get_instance_type(&mut self) -> InstanceType

Source

fn hook_created(&mut self) -> i32

Implementors§