use thiserror::Error;
#[derive(Debug, Error)]
#[non_exhaustive]
pub enum MultimuxError {
#[error("config: {0}")]
Config(String),
#[error("source: {0}")]
Source(String),
#[error("transmux: {0}")]
Transmux(#[from] transmux::Error),
#[error("io: {0}")]
Io(#[from] std::io::Error),
}
pub type Result<T> = core::result::Result<T, MultimuxError>;