Skip to main content

stop_outcome

Function stop_outcome 

Source
pub fn stop_outcome(
    was_running: bool,
    stopped: bool,
) -> Result<&'static str, &'static str>
Expand description

The line lev daemon stop prints, or the error it fails with.

was_running and stopped are separate observations because they answer different questions and the pair “nothing was running” and “it did not stop” must not read the same: the first is a success.