Skip to main content

launch

Function launch 

Source
pub fn launch() -> &'static Launch
Expand description

How this program was started. Decided at the first call.

use sys_lib as sys;

match sys::process::launch().by {
    sys::process::Launcher::Systemd => { /* JSON logs to the journal; report readiness */ }
    sys::process::Launcher::Terminal => { /* human-readable logs */ }
    _ => {}
}