Trait GeeseSystem

Source
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§

Source

const DEPENDENCIES: Dependencies = _

The set of dependencies that this system has.

Source

const EVENT_HANDLERS: EventHandlers<Self> = _

The set of events to which this system responds.

Required Methods§

Source

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.

Implementors§