pub struct Engine { /* private fields */ }Implementations§
Source§impl Engine
impl Engine
pub fn new(event: Arc<Mutex<EventDispatcher>>) -> Self
pub fn get_plugins(&self) -> &HashMap<String, Box<dyn PluginOptions>>
pub fn get_strategys(&self) -> &HashMap<String, Box<dyn StrategyOptions>>
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 !RefUnwindSafe for Engine
impl !Send for Engine
impl !Sync for Engine
impl !UnwindSafe for Engine
impl Freeze for Engine
impl Unpin for Engine
impl UnsafeUnpin 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