#[derive(Debug, thiserror::Error)]
#[non_exhaustive]
pub enum EncodeError {
#[error("io error: {0}")]
Io(#[from] std::io::Error),
#[error("unsupported: {0}")]
Unsupported(String),
#[error("encoder error: {0}")]
Encoder(String),
}
pub type Result<T> = std::result::Result<T, EncodeError>;