lampo_jsonrpc/
command.rs

1//! Command Core Definition
2
3/// Context Interface used to pass around any
4/// kind of state that the RPC command will use.
5pub trait Context: Send + Sync {
6    type Ctx;
7
8    fn ctx(&self) -> &Self::Ctx;
9}