pub struct HubSwitchGuard { /* private fields */ }Expand description
A guard that temporarily swaps the active hub in thread-local storage.
This type is !Send because it manages thread-local state and must be
dropped on the same thread where it was created.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SwitchGuard
impl RefUnwindSafe for SwitchGuard
impl !Send for SwitchGuard
impl Sync for SwitchGuard
impl Unpin for SwitchGuard
impl UnsafeUnpin for SwitchGuard
impl UnwindSafe for SwitchGuard
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