pub fn validate_task_list(path: &str) -> Result<(), SchedulerError> {
    let task_path = Path::new(path);
    let task_list = TaskList::from_path(task_path)?;
    for task in task_list.tasks {
        let _ = match task.get_absolute() {
            Ok(_) => Ok(()),
            Err(SchedulerError::TaskTimeError { .. }) => Ok(()),
            Err(e) => Err(e),
        }?;
        let _ = task.get_period()?;
    }
    Ok(())
}
// Validate the format and content of a task list
Validate the format and content of a task list
Validate the format and content of a task list
pub fn validate_task_list(path: &str) -> Result<(), SchedulerError> {
    let task_path = Path::new(path);
    let task_list = TaskList::from_path(task_path)?;
    for task in task_list.tasks {
        let _ = match task.get_absolute() {
            Ok(_) => Ok(()),
            Err(SchedulerError::TaskTimeError { .. }) => Ok(()),
            Err(e) => Err(e),
        }?;
        let _ = task.get_period()?;
    }
    Ok(())
}
pub fn validate_task_list ( path : & str ) -> Result < ( ) , SchedulerError > { let task_path = Path :: new ( path ) ; let task_list = TaskList :: from_path ( task_path ) ? ; for task in task_list . tasks { let _ = match task . get_absolute ( ) { Ok ( _ ) => Ok ( ( ) ) , Err ( SchedulerError :: TaskTimeError { .. } ) => Ok ( ( ) ) , Err ( e ) => Err ( e ) , } ? ; let _ = task . get_period ( ) ? ; } Ok ( ( ) ) }
Validate the format and content of a task list
Validate the format and content of a task list
path
&str
path
&str