[][src]Trait jsonrpc_ws_server::SessionStats

pub trait SessionStats: 'static + Send + Sync {
    fn open_session(&self, id: u64);
fn close_session(&self, id: u64); }

Keeps track of open sessions

Required methods

fn open_session(&self, id: u64)

Executed when new session is opened.

fn close_session(&self, id: u64)

Executed when session is closed.

Loading content...

Implementors

Loading content...