Module socketioxide::extensions
source · Available on crate feature
extensions only.Expand description
Extensions used to store extra data in each socket instance.
It is heavily inspired by the http::Extensions type from the http crate.
The main difference is that it uses a DashMap instead of a HashMap to allow concurrent access.
This is necessary because Extensions are shared between all the threads that handle the same socket.
Structs§
- A type map of protocol extensions.
- A wrapper for a
MappedRefthat implementsDerefandDerefMutto allow easy access to the value. - A wrapper for a
MappedRefMutthat implementsDerefandDerefMutto allow easy access to the value.