radrootsd

JSON-RPC bridge for Radroots event publishing
git clone https://radroots.dev/git/radrootsd.git
Log | Files | Refs | README | LICENSE

context.rs (216B)


      1 #![forbid(unsafe_code)]
      2 
      3 use crate::core::Radrootsd;
      4 
      5 #[derive(Clone)]
      6 pub struct RpcContext {
      7     pub state: Radrootsd,
      8 }
      9 
     10 impl RpcContext {
     11     pub fn new(state: Radrootsd) -> Self {
     12         Self { state }
     13     }
     14 }