david e792ec617c Expanded shared for Shared and Data | hai 2 meses | |
---|---|---|
examples | hai 2 meses | |
src | hai 2 meses | |
.gitignore | hai 2 meses | |
Cargo.lock | hai 2 meses | |
Cargo.toml | hai 2 meses | |
LICENSE | hai 2 meses | |
README.md | hai 2 meses |
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
.