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§
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)
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.