Trait LocalAccess

Source
pub trait LocalAccess
where Self: Clone + Copy + Sized,
{ 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§

Source

type Reclaimer: Reclaim

The concrete reclamation scheme type.

Required Methods§

Source

fn is_active(self) -> bool

Returns true if the current thread is already active.

Source

fn set_active(self)

Marks the associated thread as active.

Source

fn set_inactive(self)

Marks the associated thread as inactive.

Source

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.

Implementors§