Skip to main content

get_service_manager

Function get_service_manager 

Source
pub fn get_service_manager(boot_mode: &str) -> Result<Box<dyn ServiceManager>>
Expand description

Get the appropriate service manager for the current platform

§Arguments

  • boot_mode - “user” for user-level service (default), “system” for system-level

Returns an error if the platform is not supported or if the service manager implementation is not yet available.