pub trait ServiceProvider {
// Required methods
fn up(&self, services: &[Service]) -> Result<RunningServices, ServiceError>;
fn down(&self, running: RunningServices) -> Result<(), ServiceError>;
}Expand description
Service lifecycle provider used by the executor.
Required Methods§
Sourcefn up(&self, services: &[Service]) -> Result<RunningServices, ServiceError>
fn up(&self, services: &[Service]) -> Result<RunningServices, ServiceError>
Start all requested services.
Sourcefn down(&self, running: RunningServices) -> Result<(), ServiceError>
fn down(&self, running: RunningServices) -> Result<(), ServiceError>
Stop services from one successful up call.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".