kaspa-rpc-core 0.15.0

Kaspa RPC core
Documentation
1
2
3
4
5
6
7
8
9
10
11
//!
//! Generic connection trait representing a connection to a client (where available).
//!

use std::sync::Arc;

pub trait RpcConnection: Send + Sync {
    fn id(&self) -> u64;
}

pub type DynRpcConnection = Arc<dyn RpcConnection>;