pub struct Registry(Arc<RegistryData>);
Represents a list of threads which can access worker locals.
Creates a registry which can hold up to
Gets the registry associated with the current thread. Panics if there’s no such registry.
Registers the current thread with the registry so worker locals can be used on it. Panics if the thread limit is hit or if the thread already has an associated registry.
Auto Trait Implementations§
impl !RefUnwindSafe for Registry
impl !UnwindSafe for Registry
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain
repr(...) attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 8 bytes