I have some FFI objects that are thread safe, but only within a specific thread pool. Every thread that wants to share these objects with each other needs to register to become included in this pool.
What would be the Rust way to model this restricted sharing? I.e. so that an object can easily be shared within the pool but not to threads outside of it?