pub struct ContextKey<T> { /* private fields */ }Expand description
Context key for type-safe context access
This provides a type-safe way to access context values without relying on string keys.
Implementations§
Trait Implementations§
Source§impl<T> Clone for ContextKey<T>
impl<T> Clone for ContextKey<T>
impl<T> Copy for ContextKey<T>
Auto Trait Implementations§
impl<T> Freeze for ContextKey<T>
impl<T> RefUnwindSafe for ContextKey<T>where
T: RefUnwindSafe,
impl<T> Send for ContextKey<T>where
T: Send,
impl<T> Sync for ContextKey<T>where
T: Sync,
impl<T> Unpin for ContextKey<T>where
T: Unpin,
impl<T> UnsafeUnpin for ContextKey<T>
impl<T> UnwindSafe for ContextKey<T>where
T: UnwindSafe,
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