pub mod xray;
use std::collections::HashMap;
use async_trait::async_trait;
use crate::error::Result;
#[async_trait]
pub trait BenchmarkSession: Send + Sync {
fn endpoints(&self) -> &HashMap<String, String>;
async fn shutdown(self: Box<Self>) -> Result<()>;
}
#[async_trait]
pub trait ProxyCore: Send + Sync {
fn name(&self) -> &'static str;
async fn is_installed(&self) -> bool;
async fn install(&self) -> Result<()>;
async fn active_profile(&self) -> Result<Option<String>>;
async fn switch_profile(&self, outbound_tag: &str) -> Result<()>;
async fn reload(&self) -> Result<()>;
async fn start_benchmark_session(
&self,
_outbound_tags: &[String],
) -> Result<Option<Box<dyn BenchmarkSession>>> {
Ok(None)
}
}