pub fn stop_task(config: &Config) -> Result<()>
Expand description
Stop a task. Add the ‘stop’ entry to the logfile marked with the current date and time.
§Errors
- Return
PathError::FilenameMissing
if the log file has no filename. - Return
PathError::InvalidPath
if the path part of log file is not a valid path. - Return
PathError::FileAccess
if the log file cannot be opened or created. - Return
PathError::FileWrite
if the function fails to append to the log file.