[][src]Trait quill_prototype::Resource

pub trait Resource: Send + Sync + 'static { }

A type that can be stored in State as a "resource."

Resources are useful for plugin state that is not directly related to a specific entity. For example, you might store your plugin's configuration in a Resource.

Use State::resource and State::resource_mut to access resources. Similarly, use Setup::resource to create a resource when your plugin is loaded.

This trait is automatically implemented for most types.

Implementors

impl<T> Resource for T where
    T: Send + Sync + 'static, 
[src]

Loading content...