Files
squeekboard/src/receiver.rs
Dorota Czaplejewicz 590cd71f49 state: Store layout override
Not used for any externally observable effects
2022-06-06 16:10:53 +00:00

15 lines
454 B
Rust

/*! Defines the application-wide message bus for updating state.*/
use crate::event_loop::driver::Threaded;
pub mod c {
use super::*;
use crate::util::c::Wrapped;
pub type State = Wrapped<Threaded>;
}
// The state receiver is an endpoint of a channel, so it's safely cloneable.
// There's no need to keep it in a Rc.
// The C version uses Wrapped with an underlying Rc,
// because Wrapped is well-tested already.
pub type State = Threaded;