Skip to main content

Plugin

Trait Plugin 

Source
pub trait Plugin {
    // Required method
    fn get_meta() -> PluginMeta;

    // Provided methods
    fn init(_world: &mut World) -> AppResult { ... }
    fn step(_world: &World) -> AppResult { ... }
    fn pre_step(_world: &World) -> AppResult { ... }
    fn post_step(_world: &World) -> AppResult { ... }
    fn exit(_world: &World) { ... }
}

Required Methods§

Provided Methods§

Source

fn init(_world: &mut World) -> AppResult

Source

fn step(_world: &World) -> AppResult

Source

fn pre_step(_world: &World) -> AppResult

Source

fn post_step(_world: &World) -> AppResult

Source

fn exit(_world: &World)

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§