Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generic Session #27

Open
cortopy opened this issue Dec 10, 2021 · 0 comments
Open

Generic Session #27

cortopy opened this issue Dec 10, 2021 · 0 comments
Labels
enhancement New feature or request semver-major

Comments

@cortopy
Copy link

cortopy commented Dec 10, 2021

A Session has a data field of type HashMap<String, String>. This forces a session to always use JSON for serialization/deserialization.

In my case I would prefer if it was a HashMap<String, Bytes> so that I can use more efficient serde methods (e.g.: bincode, which this crate already uses)

Would it be possible to change Session so that it becomes generic like Session<T> so that data becomes HashMap<String, T>?

@jbr jbr added enhancement New feature or request semver-major labels Apr 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request semver-major
Projects
None yet
Development

No branches or pull requests

2 participants