pub struct Handle { /* private fields */ }Expand description
Tier-scoped wrapper around Registry. What crate::Client::with_stats and
crate::Server::with_stats accept. Cheap to clone.
Implementations§
Source§impl Handle
impl Handle
Sourcepub fn session(&self, root: impl AsPath) -> Session
pub fn session(&self, root: impl AsPath) -> Session
Record a connected session authenticated under root on this tier. Hold
the returned guard for the session’s lifetime; dropping it bumps
sessions_closed. Counts presence regardless of any data flow, so a
session that merely connects is still billable. Surfaced on the session
track for this tier, keyed by root.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Handle
impl RefUnwindSafe for Handle
impl Send for Handle
impl Sync for Handle
impl Unpin for Handle
impl UnsafeUnpin for Handle
impl UnwindSafe for Handle
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