pub trait ServicePlugin:
Send
+ Sync
+ Debug {
// Required methods
fn name(&self) -> &str;
fn start(&self) -> Result<ServiceHandle>;
fn stop(&self, handle: ServiceHandle) -> Result<()>;
fn health_check(&self, handle: &ServiceHandle) -> HealthStatus;
}Expand description
Plugin-based service registry (no hardcoded postgres/redis)
Required Methods§
Sourcefn start(&self) -> Result<ServiceHandle>
fn start(&self) -> Result<ServiceHandle>
Start the service
Sourcefn stop(&self, handle: ServiceHandle) -> Result<()>
fn stop(&self, handle: ServiceHandle) -> Result<()>
Stop the service
Sourcefn health_check(&self, handle: &ServiceHandle) -> HealthStatus
fn health_check(&self, handle: &ServiceHandle) -> HealthStatus
Check service health