[][src]Struct conquer_util::Token

pub struct Token<'s, 'tls, T> { /* fields omitted */ }

A thread local token granting unique access to an instance of T that is contained in a BoundedThreadLocal

Implementations

impl<T, '_, '_> Token<'_, '_, T>[src]

pub fn get(&self) -> &T[src]

Returns a reference to the thread local state.

pub fn get_mut(&mut self) -> &mut T[src]

Returns a mutable reference to the thread local state.

Trait Implementations

impl<T: Debug, '_, '_> Debug for Token<'_, '_, T>[src]

impl<T: Display, '_, '_> Display for Token<'_, '_, T>[src]

impl<T, '_, '_> Drop for Token<'_, '_, T>[src]

Auto Trait Implementations

impl<'s, 'tls, T> !RefUnwindSafe for Token<'s, 'tls, T>

impl<'s, 'tls, T> !Send for Token<'s, 'tls, T>

impl<'s, 'tls, T> !Sync for Token<'s, 'tls, T>

impl<'s, 'tls, T> Unpin for Token<'s, 'tls, T> where
    's: 'tls, 

impl<'s, 'tls, T> !UnwindSafe for Token<'s, 'tls, T>

Blanket Implementations

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

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

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

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

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

impl<T> ToString for T where
    T: Display + ?Sized
[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<V, T> VZip<V> for T where
    V: MultiLane<T>,