use std::sync::Arc;
use tokio::sync::watch;
use crate::executor::Executor;
use crate::health::HealthRegistry;
use crate::metrics::MetricsRegistry;
use crate::role::PluginRole;
use crate::rpc::RpcRegistrar;
#[derive(Debug, Clone)]
pub struct PoolContext {
pub label: String,
pub primary: bool,
}
#[derive(Clone)]
pub struct PluginContext {
pub role: PluginRole,
pub executor: Arc<dyn Executor>,
pub shutdown: watch::Receiver<bool>,
pub rpc_registrar: Option<Arc<dyn RpcRegistrar>>,
pub health_registry: Option<Arc<dyn HealthRegistry>>,
pub metrics_registry: Option<Arc<dyn MetricsRegistry>>,
pub pool: Option<PoolContext>,
}