relm4/shared_state/
mod.rs

1//! Shared state that can be accessed by many components.
2
3mod async_reducer;
4mod reducer;
5mod state;
6
7type SubscriberFn<Data> = Box<dyn Fn(&Data) -> bool + 'static + Send + Sync>;
8
9pub use async_reducer::{AsyncReducer, AsyncReducible};
10pub use reducer::{Reducer, Reducible};
11pub use state::{SharedState, SharedStateReadGuard, SharedStateWriteGuard};