-
Notifications
You must be signed in to change notification settings - Fork 18
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
Add a listener trait to listen to the creation, update and destruction of sessions #43
Labels
Comments
Thanks for the suggestion. Do you have an idea of what the implementation would look like? |
maxcountryman
added
enhancement
New feature or request
help wanted
Extra attention is needed
labels
Apr 30, 2023
I think it should be similar to the listener API of the javaee servlet
|
I suggest a slightly different interface: pub enum AttributeEvent {
Add(AddEvent),
Replace(ReplaceEvent),
Remove(RemoveEvent)
}
pub enum SessionEvent {
Create(CreateEvent),
Destroy(DestroyEvent),
Modify(AttributeEvent)
}
trait SessionListener {
fn onEvent(&self, event: SessionEvent);
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add a listener trait to listen to the creation, update and destruction of sessions
The text was updated successfully, but these errors were encountered: