zsmtp 0.1.0

A zero-knowledge SMTP mail transfer agent prototype
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
use std::path::PathBuf;
use thiserror::Error;

#[derive(Debug, Error)]
pub enum ConfigError {
    #[error("configuration file does not exist: {0}")]
    MissingFile(PathBuf),
    #[error("configuration field must not be empty: {0}")]
    EmptyField(&'static str),
    #[error("configuration field must be greater than zero: {0}")]
    ZeroValue(&'static str),
}