pub struct PseudoScopedKey<T> {
    pub inner: OnceCell<T>,
}Expand description
Simple substitution for scoped_thread_local with limited interface parity.
The only available fn in this struct is with, which is being used for the
consumers when they need to access global scope handler (HANDLER.with()).
Any other interfaces to support thread local is not available.
Fields§
§inner: OnceCell<T>Implementations§
Trait Implementations§
impl<T> Sync for PseudoScopedKey<T>
Auto Trait Implementations§
impl<T> !Freeze for PseudoScopedKey<T>
impl<T> RefUnwindSafe for PseudoScopedKey<T>where
    T: RefUnwindSafe + UnwindSafe,
impl<T> Send for PseudoScopedKey<T>where
    T: Send,
impl<T> Unpin for PseudoScopedKey<T>where
    T: Unpin,
impl<T> UnwindSafe for PseudoScopedKey<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