use rust_releases_core::Channel;
pub type RustDistWithCLIResult<T> = Result<T, RustDistWithCLIError>;
#[derive(Debug, thiserror::Error)]
#[non_exhaustive]
pub enum RustDistWithCLIError {
#[error("Channel {0} is not yet available for the 'RustDistWithCLI' source type")]
ChannelNotAvailable(Channel),
#[error("{0}")]
RustReleasesIo(#[from] rust_releases_io::IoError),
#[error("{0}")]
UnrecognizedText(#[from] std::string::FromUtf8Error),
}