Skip to main content

Store

Trait Store 

Source
pub trait Store: Clone + 'static {
    // Required method
    fn create() -> Self;
}
Expand description

App-wide state, created once per app by use_store.

Required Methods§

Source

fn create() -> Self

Creates the store. Runs once, in a scope that lives as long as the app, so the store’s effects, resources and tasks do too.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§