use std::string::FromUtf8Error;
use async_std::io;
#[derive(thiserror::Error, Debug)]
pub enum Error {
#[error("client error: {0}")]
Client(String),
#[error("utf8 error: {0}")]
Utf8Parsing(#[from] FromUtf8Error),
#[error("io error: {0}")]
Io(#[from] io::Error),
}
pub type SendmailResult = Result<(), Error>;