Skip to main content

get_exe_path

Function get_exe_path 

Source
pub fn get_exe_path() -> PathBuf
Expand description

The binary path to register with the scheduler.

Not current_exe(): a scheduled task outlives the process that created it, so the path it records has to outlive it too. See crate::setup::stable_exe_path for what goes wrong when it does not.