pub trait SessionStats:
Send
+ Sync
+ 'static {
// Required methods
fn open_session(&self, id: u64);
fn close_session(&self, id: u64);
}
Expand description
Keeps track of open sessions
Required Methods§
Sourcefn open_session(&self, id: u64)
fn open_session(&self, id: u64)
Executed when new session is opened.
Sourcefn close_session(&self, id: u64)
fn close_session(&self, id: u64)
Executed when session is closed.