pub struct Token<'s, 'tls, T> { /* private fields */ }
Expand description
A thread local token granting unique access to an instance of T
that is
contained in a BoundedThreadLocal
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<'s, 'tls, T> Freeze for Token<'s, 'tls, T>
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>
impl<'s, 'tls, T> !UnwindSafe for Token<'s, 'tls, T>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more