ControllerPlugin

Trait ControllerPlugin 

Source
pub trait ControllerPlugin: Send + Sync {
    // Required methods
    fn name(&self) -> &str;
    fn init(&self) -> Result<(), ControllerPluginError>;
    fn load(
        &self,
        game_controller: Arc<dyn GameControllerTrait>,
    ) -> Result<(), ControllerPluginError>;
    fn unload(
        &self,
        game_controller: Arc<dyn GameControllerTrait>,
    ) -> Result<(), ControllerPluginError>;
}

Required Methods§

Source

fn name(&self) -> &str

Source

fn init(&self) -> Result<(), ControllerPluginError>

Source

fn load( &self, game_controller: Arc<dyn GameControllerTrait>, ) -> Result<(), ControllerPluginError>

Source

fn unload( &self, game_controller: Arc<dyn GameControllerTrait>, ) -> Result<(), ControllerPluginError>

Implementors§