pub trait Script {
// Provided methods
fn init(&mut self) { ... }
fn actions() -> Vec<RegisterAction> { ... }
fn tick(&mut self) { ... }
fn on_message(&mut self, msg: Message) { ... }
}
Provided Methods§
Sourcefn actions() -> Vec<RegisterAction>
fn actions() -> Vec<RegisterAction>
Register actions.
Sourcefn on_message(&mut self, msg: Message)
fn on_message(&mut self, msg: Message)
Handle a message.
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.