Struct SessionGuard
pub struct SessionGuard { /* private fields */ }Expand description
RAII guard that releases the session permit on drop.
Implementations§
Source§impl SessionGuard
impl SessionGuard
Sourcepub fn session_id(&self) -> &str
pub fn session_id(&self) -> &str
The session id whose admission permit this guard owns.
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