Enum rust_releases::RustChangelogError [−][src]
#[non_exhaustive]
pub enum RustChangelogError {
ChannelNotAvailable(Channel),
ChronoParseError(String),
NoDateInChangelogItem,
NoVersionInChangelogItem,
RustReleasesIoError(IoError),
SemverError(Error, String),
UnrecognizedText(FromUtf8Error),
}
Expand description
Top level failure cases for rust-releases-rust-changelog source crate
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
ChannelNotAvailable(Channel)
Returned in case a Channel
is not available for the Source
Tuple Fields of ChannelNotAvailable
0: Channel
ChronoParseError(String)
Returned in case of of chrono
parse errors
Tuple Fields of ChronoParseError
0: String
Returned in a case a release entry does not contain a recognizable release date
Returned in a case a release entry does not contain a recognizable release version
Returned in case a rust-releases-io
error is caught
Returned in case of semver error on the hot path
UnrecognizedText(FromUtf8Error)
Returned in case a input resource cannot be parsed as UTF-8
Tuple Fields of UnrecognizedText
Trait Implementations
Performs the conversion.
Performs the conversion.