6 releases
0.1.5 | Sep 13, 2024 |
---|---|
0.1.4 | Mar 27, 2024 |
0.1.3 | Jan 8, 2024 |
0.1.2 | Sep 3, 2022 |
0.1.0 | Jun 9, 2021 |
#66 in FFI
12,484 downloads per month
Used in 8 crates
(via selinux)
16KB
264 lines
Reference-Counted Singleton
RefCountedSingleton
is a reference-counted singleton whose protected data
can be recreated as needed.
The protected data is created when RefCountedSingleton::get_or_init
is called.
That function returns an RCSRef
reference to the singleton.
RCSRef
instances can be cloned as needed.
The last RCSRef
reference drops the data.
Calling RefCountedSingleton::get_or_init
again recreates the data.
Versioning
This project adheres to Semantic Versioning.
The CHANGELOG.md
file details notable changes over time.