Trait geese::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.

Object Safety§

This trait is not object safe.

Implementors§