pub fn uninstall(name: &str) -> Result<Uninstalled>Expand description
Stops and removes the service name (spec 3.2 §7.12): the reverse of install. The
kernel home, its stores and its log stay.
§Errors
Returns KernelError::Service when no service of that name is installed, the service
manager refuses, or, on Windows, outside an elevated shell.
§Example
use adk_kernel::service::{ServiceDefinition, uninstall};
let removed = uninstall(&ServiceDefinition::name_for(std::path::Path::new("/srv/kernel")))?;
println!("removed {}", removed.name);