pub trait LifecycleSink {
// Provided methods
fn on_ready(&mut self, _node: &NodeId) { ... }
fn on_process(&mut self, _node: &NodeId, _delta: f32) { ... }
}Expand description
Lifecycle dispatch seam (_ready, _process, _draw).
Systems call into scripts through this sink; missing methods are no-ops, never errors.
Provided Methods§
fn on_ready(&mut self, _node: &NodeId)
fn on_process(&mut self, _node: &NodeId, _delta: f32)
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".