pub struct SessionExtensions { /* private fields */ }Expand description
Per-connection typed extension store, keyed by TypeId.
Allows hooks and handlers to store arbitrary per-session state that is
automatically cleaned up when the connection closes. Uses interior
mutability so it can be accessed from &dyn ClientInfo.
Implementations§
Source§impl SessionExtensions
impl SessionExtensions
Trait Implementations§
Source§impl Debug for SessionExtensions
impl Debug for SessionExtensions
Source§impl Default for SessionExtensions
impl Default for SessionExtensions
Source§fn default() -> SessionExtensions
fn default() -> SessionExtensions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !Freeze for SessionExtensions
impl RefUnwindSafe for SessionExtensions
impl Send for SessionExtensions
impl Sync for SessionExtensions
impl Unpin for SessionExtensions
impl UnsafeUnpin for SessionExtensions
impl UnwindSafe for SessionExtensions
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