rpc-toolkit 0.3.2

A toolkit for creating JSON-RPC 2.0 servers with automatic cli bindings
Documentation
1
2
3
4
5
6
7
8
9
use std::sync::Arc;

use tokio::runtime::Runtime;

pub trait Context: Send + Sync + 'static {
    fn runtime(&self) -> Option<Arc<Runtime>> {
        None
    }
}