use std::string::FromUtf8Error;
use futures::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),
#[cfg(feature = "runtime-tokio")]
#[error("join: {0}")]
Join(#[from] tokio::task::JoinError),
}
pub type SendmailResult = Result<(), Error>;