1 2 3 4 5 6 7 8 9
use async_trait::async_trait; use serde_json::Value; use crate::model::json::JsonResult; #[async_trait] pub trait Transport: Send + Sync { async fn call(&self, method: &str, params: Value) -> JsonResult<Value>; }