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
27
28
29
30
31
32
33
use rust_releases_core::Channel;
pub type RustDistResult<T> = Result<T, RustDistError>;
#[derive(Debug, thiserror::Error)]
#[non_exhaustive]
pub enum RustDistError {
#[error("Channel {0} is not yet available for the 'RustDist' source type")]
ChannelNotAvailable(Channel),
#[error("{0}")]
Io(#[from] std::io::Error),
#[error("{0}")]
RusotoTlsError(#[from] rusoto_core::request::TlsError),
#[error("{0}")]
RustReleasesIo(#[from] rust_releases_io::IoError),
#[error("{0}")]
UnrecognizedText(#[from] std::string::FromUtf8Error),
#[error("{0}")]
UnableToParseNumber(#[from] std::num::ParseIntError),
}