jsonrpc_ipc_server

Trait SessionStats

Source
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§

Source

fn open_session(&self, id: u64)

Executed when new session is opened.

Source

fn close_session(&self, id: u64)

Executed when session is closed.

Implementors§