I created this library as an alternative to a commonly used solution in the rust ecosystem called 'arc-swap' https://docs.rs/arc-swap/. I figured this could be done with a simpler and (depending on the use-case) more performant mechanism for swapping out an Arc.

Show HN: Rust Library to atomically swap a reference counted pointer (Arc)
github.com