pub struct SessionGuard { /* private fields */ }Expand description
Installation guard. Closing removes the thread-local state before dropping it. Old attempt/program tokens cannot write into a later installation. The guard must be finished or dropped on its installing thread.
Implementations§
Trait Implementations§
Source§impl Drop for SessionGuard
impl Drop for SessionGuard
Auto Trait Implementations§
impl !Send for SessionGuard
impl !Sync for SessionGuard
impl Forget for SessionGuard
impl Freeze for SessionGuard
impl Move for SessionGuard
impl RefUnwindSafe for SessionGuard
impl Unpin for SessionGuard
impl UnsafeUnpin for SessionGuard
impl UnwindSafe for SessionGuard
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