Struct nolock::thread_data::ThreadDataStorage
source · [−]pub struct ThreadDataStorage<S, T> { /* private fields */ }
Expand description
A Storage-Container for Thread Local Data
Implementations
sourceimpl<T> ThreadDataStorage<Trie<T>, T>
impl<T> ThreadDataStorage<Trie<T>, T>
sourceimpl<T> ThreadDataStorage<List<T>, T>
impl<T> ThreadDataStorage<List<T>, T>
sourceimpl<S, T> ThreadDataStorage<S, T>
impl<S, T> ThreadDataStorage<S, T>
sourcepub const fn new_storage(storage: S) -> Self
pub const fn new_storage(storage: S) -> Self
Creates a new Instance which uses the given Storage-Backend for all the Data.
Use Case
This should only really be used if you want to use a custom StorageBackend
with it.
Otherwise you should just use ThreadData::<T>::new()
to create a
ThreadDataStorage instance with the Trie StorageBackend
sourceimpl<S, T> ThreadDataStorage<S, T>where
S: StorageBackend<T>,
impl<S, T> ThreadDataStorage<S, T>where
S: StorageBackend<T>,
Trait Implementations
sourceimpl<S, T> Debug for ThreadDataStorage<S, T>where
S: StorageBackend<T>,
impl<S, T> Debug for ThreadDataStorage<S, T>where
S: StorageBackend<T>,
sourceimpl<T> Default for ThreadDataStorage<List<T>, T>
impl<T> Default for ThreadDataStorage<List<T>, T>
sourceimpl<T> Default for ThreadDataStorage<Trie<T>, T>
impl<T> Default for ThreadDataStorage<Trie<T>, T>
impl<S, T> Send for ThreadDataStorage<S, T>
impl<S, T> Sync for ThreadDataStorage<S, T>
Auto Trait Implementations
impl<S, T> RefUnwindSafe for ThreadDataStorage<S, T>where
S: RefUnwindSafe,
T: RefUnwindSafe,
impl<S, T> Unpin for ThreadDataStorage<S, T>where
S: Unpin,
T: Unpin,
impl<S, T> UnwindSafe for ThreadDataStorage<S, T>where
S: UnwindSafe,
T: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more