Skip to main content

ServiceProvider

Trait ServiceProvider 

Source
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§

Source

fn up(&self, services: &[Service]) -> Result<RunningServices, ServiceError>

Start all requested services.

Source

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".

Implementors§