pub trait LocalAccess{
type Reclaimer: Reclaim;
// Required methods
fn is_active(self) -> bool;
fn set_active(self);
fn set_inactive(self);
fn retire_record(self, record: Retired<Self::Reclaimer>);
}
Expand description
A trait for abstracting over different ways for accessing thread local state.
Required Associated Types§
Required Methods§
Sourcefn set_active(self)
fn set_active(self)
Marks the associated thread as active.
Sourcefn set_inactive(self)
fn set_inactive(self)
Marks the associated thread as inactive.
Sourcefn retire_record(self, record: Retired<Self::Reclaimer>)
fn retire_record(self, record: Retired<Self::Reclaimer>)
Retires an unlinked record in the local cache.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.