Trait SetupHandler

Source
pub trait SetupHandler<T>: Sized {
    // Required method
    fn setup(res: &mut Resources);
}
Expand description

A setup handler performing the fetching of T.

Required Methods§

Source

fn setup(res: &mut Resources)

Sets up Resources for fetching T.

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.

Implementations on Foreign Types§

Source§

impl<P> SetupHandler<Hierarchy<P>> for HierarchySetupHandler<P>
where P: Component + Send + Sync + 'static, <P as Component>::Storage: Tracked,

Source§

fn setup(res: &mut Resources)

Implementors§