Struct task_local::Storage
source · [−]pub struct Storage<T> { /* private fields */ }
Expand description
An opaque type used to hold and facilitate access to the task-local values.
This type should only be used when implementing TaskLocal::key
manually.
Trait Implementations
Auto Trait Implementations
impl<T> !RefUnwindSafe for Storage<T>
impl<T> Send for Storage<T> where
T: Send,
impl<T> !Sync for Storage<T>
impl<T> Unpin for Storage<T>
impl<T> UnwindSafe for Storage<T> where
T: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more