ddns-core 0.1.0

Runtime core for ddns-rs: scheduler, HTTP API and shared state.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use thiserror::Error;

/// Validation errors in configuration
#[derive(Error, Debug)]
pub enum ConfigError {
    #[error("validation failed: {0}")]
    Validate(#[from] validator::ValidationErrors),
}

/// Errors raised during scheduling or provider updates
#[derive(Error, Debug)]
pub enum CoreError {
    #[error("fatal error: {0}")]
    Fatal(#[from] anyhow::Error),

    #[error("retryable error: {0}")]
    Retryable(anyhow::Error),
}