pub trait CommandPlugin {
// Required methods
fn load_commands(&self) -> Vec<Box<dyn Command>>;
fn name(&self) -> &'static str;
// Provided methods
fn version(&self) -> &'static str { ... }
fn is_available(&self) -> bool { ... }
}Expand description
✅ PLUGIN SYSTEM für externe Commands - JETZT OBJECT-SAFE!
Required Methods§
Sourcefn load_commands(&self) -> Vec<Box<dyn Command>>
fn load_commands(&self) -> Vec<Box<dyn Command>>
Lädt alle Commands des Plugins
Provided Methods§
Sourcefn is_available(&self) -> bool
fn is_available(&self) -> bool
Plugin ist verfügbar? (für conditional loading)