pub(crate) struct SessionGuard {
plane: Arc<ControlPlane>,
id: SessionId,
}Expand description
One live session’s registration. Ends it on drop.
Held in the frame of the function that runs the session, so the registration lasts exactly as long as the session does — including when that function returns early, and including when its future is dropped wholesale rather than run to completion.
Fields§
§plane: Arc<ControlPlane>§id: SessionIdTrait Implementations§
Source§impl Drop for SessionGuard
impl Drop for SessionGuard
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