pub trait GeeseSystem: 'static + Sized {
const DEPENDENCIES: Dependencies = _;
const EVENT_HANDLERS: EventHandlers<Self> = _;
// Required method
fn new(ctx: GeeseContextHandle<Self>) -> Self;
}Expand description
Represents a collection of event handlers with internal state.
Provided Associated Constants§
Sourceconst DEPENDENCIES: Dependencies = _
const DEPENDENCIES: Dependencies = _
The set of dependencies that this system has.
Sourceconst EVENT_HANDLERS: EventHandlers<Self> = _
const EVENT_HANDLERS: EventHandlers<Self> = _
The set of events to which this system responds.
Required Methods§
Sourcefn new(ctx: GeeseContextHandle<Self>) -> Self
fn new(ctx: GeeseContextHandle<Self>) -> Self
Creates a new instance of the system for the given system handle.
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.