1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
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),
}