A crate containing easier to use thread-safe types for the creation of larger thread safe systems.
SyncCell<T>- A replacement forstd::cell::RefCellandstd::cell::Cellwith an easier to use API thanstd::sync::RwLock.HeldSyncCell<T>- A cell that maintains a previous value until theupdatemethod is called at which point any changes to the value are applied.
You can read the documentation at https://docs.rs/sync-cell/0.2.0/sync_cell/
To use SyncCell and HeldSyncCell add the following to the [dependencies] section of your Cargo.toml.
[dependencies]
sync-cell = "0.2.0"