pub struct SessionGuard { /* private fields */ }Expand description
RAII guard that holds a per-session lock for the duration of a run.
Returned by SessionGate::acquire. Dropping this guard releases the
session lock, allowing the next queued run to proceed.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for SessionGuard
impl !UnwindSafe for SessionGuard
impl Freeze for SessionGuard
impl Send for SessionGuard
impl Sync for SessionGuard
impl Unpin for SessionGuard
impl UnsafeUnpin 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