interprog 0.1.0

Inter-process progress reports made easy
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use thiserror::Error;

#[derive(Error, Debug)]
pub enum InterprogError {
    #[error("Task has already been started/is running")]
    TaskAlreadyStarted,
    #[error("The requested task does not exist")]
    NonexistentTask,
    #[error("Another task of the same name already exists")]
    TaskAlreadyExists,
    #[error("The task is the wrong type for the requested operation")]
    InvalidTaskType,
    // XXX: Better naming
    #[error("Task is already done")]
    TaskAlreadyFinished,
}