david e792ec617c Expanded shared for Shared and Data | il y a 2 mois | |
---|---|---|
examples | il y a 2 mois | |
src | il y a 2 mois | |
.gitignore | il y a 2 mois | |
Cargo.lock | il y a 2 mois | |
Cargo.toml | il y a 2 mois | |
LICENSE | il y a 2 mois | |
README.md | il y a 2 mois |
A Arc Mutex guarded Data.
cargo add shared
use shared::Shared;
// Wrap your structure in Shared<S> via Shared::new(S)
To run, say doc_example
just cargo run --example doc_example
.