use rust_releases_core::Channel;
use std::io;
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(transparent)]
Io(#[from] io::Error),
#[error(transparent)]
BaseCacheDir(#[from] rust_releases_io::BaseCacheDirError),
#[error(transparent)]
UnrecognizedText(#[from] std::str::Utf8Error),
}