[][src]Struct loom::thread::LocalKey

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

Mock implementation of std::thread::LocalKey.

Methods

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

pub fn with<F, R>(&'static self, f: F) -> R where
    F: FnOnce(&T) -> R, 
[src]

Mock implementation of std::thread::LocalKey::with.

pub fn try_with<F, R>(&'static self, f: F) -> Result<R, AccessError> where
    F: FnOnce(&T) -> R, 
[src]

Mock implementation of std::thread::LocalKey::try_with.

Trait Implementations

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

Auto Trait Implementations

impl<T> Send for LocalKey<T>

impl<T> Sync for LocalKey<T>

impl<T> Unpin for LocalKey<T>

impl<T> UnwindSafe for LocalKey<T>

impl<T> RefUnwindSafe for LocalKey<T>

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]