relm4 0.11.0

An idiomatic GUI library inspired by Elm and based on gtk4-rs
1
2
3
4
5
6
7
8
9
10
11
//! Shared state that can be accessed by many components.

mod async_reducer;
mod reducer;
mod state;

type SubscriberFn<Data> = Box<dyn Fn(&Data) -> bool + 'static + Send + Sync>;

pub use async_reducer::{AsyncReducer, AsyncReducible};
pub use reducer::{Reducer, Reducible};
pub use state::{SharedState, SharedStateReadGuard, SharedStateWriteGuard};