pub struct LocalStorageDataImage<T>where
T: LocalStorage,{ /* private fields */ }
Expand description
An initialized data image ready to be used by a CPU/new task.
The data is opaque, but one can obtain a pointer to the CLS/TLS area.
The data is “immutable” with respect to Theseus task management functions at the language level. However, it will be modified by CLS/TLS accesses.
Implementations§
source§impl<T> LocalStorageDataImage<T>where
T: LocalStorage,
impl<T> LocalStorageDataImage<T>where T: LocalStorage,
source§impl LocalStorageDataImage<Cls>
impl LocalStorageDataImage<Cls>
sourcepub unsafe fn set_as_current_cls(&self)
pub unsafe fn set_as_current_cls(&self)
Sets the data image.
Safety
The data image must not be dropped until another data image replaces it.
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.
Trait Implementations§
Auto Trait Implementations§
impl<T> RefUnwindSafe for LocalStorageDataImage<T>where T: RefUnwindSafe,
impl<T> Send for LocalStorageDataImage<T>where T: Send,
impl<T> Sync for LocalStorageDataImage<T>where T: Sync,
impl<T> Unpin for LocalStorageDataImage<T>where T: Unpin,
impl<T> UnwindSafe for LocalStorageDataImage<T>where T: UnwindSafe,
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more