Struct sgx_tstd::thread::LocalKey[][src]

pub struct LocalKey<T: 'static> { /* fields omitted */ }

Methods

impl<T: 'static> LocalKey<T>
[src]

Acquires a reference to the value in this TLS key.

This will lazily initialize the value if this thread has not referenced this key yet.

Panics

This function will panic!() if TLS data needs to be destructed, TCS policy must be Bound.

Acquires a reference to the value in this TLS key.

This will lazily initialize the value if this thread has not referenced this key yet. If the key has been destroyed (which may happen if this is called in a destructor), this function will return a ThreadLocalError.

Panics

This function will still panic!() if the key is uninitialized and the key's initializer panics.

Trait Implementations

impl<T: 'static> Debug for LocalKey<T>
[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl<T> Send for LocalKey<T>

impl<T> Sync for LocalKey<T>