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