pub struct Engine {
pub event: EventDispatcher,
/* private fields */
}Fields§
§event: EventDispatcherImplementations§
Source§impl Engine
impl Engine
pub fn new() -> Self
pub fn get_plugins(&self) -> &HashMap<String, Box<dyn PluginOptions>>
pub fn plugin_data(&self, name: &str) -> Option<Value>
pub fn get_strategys(&self) -> &HashMap<String, Box<dyn StrategyOptions>>
pub fn strategy_data(&self, name: &str) -> Option<Value>
pub fn install<P: PluginOptions + 'static>(&mut self, plugin: P) -> MyError<()>
pub fn uninstall(&mut self, plugin_name: &str)
pub fn exec<S: StrategyOptions + 'static>(&mut self, strategy: S) -> MyError<()>
pub fn rollback(&mut self, strategy_name: &str)
Auto Trait Implementations§
impl Freeze for Engine
impl !RefUnwindSafe for Engine
impl !Send for Engine
impl !Sync for Engine
impl Unpin for Engine
impl !UnwindSafe for Engine
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more