Type Alias local_storage_initializer::TlsDataImage
source · pub type TlsDataImage = LocalStorageDataImage<Tls>;
Aliased Type§
struct TlsDataImage { /* private fields */ }
Implementations§
source§impl<T> LocalStorageDataImage<T>where
T: LocalStorage,
impl<T> LocalStorageDataImage<T>where T: LocalStorage,
source§impl LocalStorageDataImage<Tls>
impl LocalStorageDataImage<Tls>
sourcepub unsafe fn set_as_current_tls(&self)
pub unsafe fn set_as_current_tls(&self)
Sets the data image.
Safety
The data image must not be dropped until another data image replaces it, or until thread-local storage will never be accessed from the current thread again.