taskvisor 0.1.2

Event-driven task orchestration with restart, backoff, and user-defined subscribers
Documentation
use thiserror::Error;

#[derive(Error, Debug, Clone, Copy, PartialEq, Eq)]
pub enum ControllerError {
    /// Controller is not configured (builder didn't call `with_controller`).
    #[error("controller not configured")]
    NotConfigured,

    /// Submission queue is full (try again later or use async `submit`).
    #[error("submission queue full")]
    Full,

    /// Controller channel is closed (controller task died).
    #[error("controller channel closed")]
    Closed,

    /// Controller is already running (double `run()` call).
    #[error("controller already running")]
    AlreadyRunning,
}