Struct drone_core::thr::LocalOpaque [−][src]
#[repr(transparent)]pub struct LocalOpaque<T: Thread>(_);
Thread-local storage wrapper for thread T
.
The wrapper is always Sync
, while T::Local
is not necessarily
Sync
. The contents of the wrapper can be revealed only by
Thread::local
function, which guarantees that the contents doesn’t leave
its thread.
Implementations
impl<T: Thread> LocalOpaque<T>
[src]
impl<T: Thread> LocalOpaque<T>
[src]Trait Implementations
impl<T: Thread> Sync for LocalOpaque<T>
[src]
impl<T: Thread> Sync for LocalOpaque<T>
[src]Auto Trait Implementations
impl<T> Send for LocalOpaque<T> where
<T as Thread>::Local: Send,
impl<T> Send for LocalOpaque<T> where
<T as Thread>::Local: Send,
impl<T> Unpin for LocalOpaque<T> where
<T as Thread>::Local: Unpin,
impl<T> Unpin for LocalOpaque<T> where
<T as Thread>::Local: Unpin,