Struct ayaka_runtime::plugin::Module
source · pub struct Module<M: RawModule> { /* private fields */ }Expand description
The plugin module with high-level interfaces.
Implementations§
source§impl<M: RawModule> Module<M>
impl<M: RawModule> Module<M>
sourcepub fn plugin_type(&self) -> Result<PluginType>
pub fn plugin_type(&self) -> Result<PluginType>
Gets the PluginType.
sourcepub fn process_action(
&self,
ctx: ActionProcessContextRef<'_>
) -> Result<ActionProcessResult>
pub fn process_action( &self, ctx: ActionProcessContextRef<'_> ) -> Result<ActionProcessResult>
Processes Action in action plugin.
sourcepub fn dispatch_text(
&self,
name: &str,
args: &[String],
ctx: TextProcessContextRef<'_>
) -> Result<TextProcessResult>
pub fn dispatch_text( &self, name: &str, args: &[String], ctx: TextProcessContextRef<'_> ) -> Result<TextProcessResult>
Calls a custom command in the text plugin.
sourcepub fn dispatch_line(
&self,
name: &str,
ctx: LineProcessContextRef<'_>
) -> Result<LineProcessResult>
pub fn dispatch_line( &self, name: &str, ctx: LineProcessContextRef<'_> ) -> Result<LineProcessResult>
Calls a custom command in the line plugin.
sourcepub fn process_game(
&self,
ctx: GameProcessContextRef<'_>
) -> Result<GameProcessResult>
pub fn process_game( &self, ctx: GameProcessContextRef<'_> ) -> Result<GameProcessResult>
Processes Game when opening the config file.
Auto Trait Implementations§
impl<M> RefUnwindSafe for Module<M>where
M: RefUnwindSafe,
impl<M> Send for Module<M>where
M: Send,
impl<M> Sync for Module<M>where
M: Sync,
impl<M> Unpin for Module<M>where
M: Unpin,
impl<M> UnwindSafe for Module<M>where
M: UnwindSafe,
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