#[non_exhaustive]pub enum ChannelManifestsError {
ChannelNotAvailable(Channel),
DeserializeToml(Error),
ParseManifestDate,
ParseManifestSource,
ParseMetaManifest,
ParseRustVersion(Error),
BaseCacheDir(BaseCacheDirError),
CachedClient(CachedClientError),
RustVersionNotFoundInManifest,
}
Expand description
Top level failure cases for rust-releases-channel-manifests 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 when the channel is not available, that is, is unimplemented.
DeserializeToml(Error)
Returned when a retrieved manifest is not decodable as TOML.
ParseManifestDate
Returned when the manifest date can not be parsed.
ParseManifestSource
Returned when the manifest source can not be parsed from the top level meta manifest.
ParseMetaManifest
Returned when the top level meta manifest can not be parsed.
ParseRustVersion(Error)
Returned when there is an issue with a semver version.
BaseCacheDir(BaseCacheDirError)
Returned in case of an I/O error.
CachedClient(CachedClientError)
Returned in case the client failed to fetch a resource file.
RustVersionNotFoundInManifest
Returned when the Rust version can not be found in a release manifest.
Trait Implementations§
source§impl Debug for ChannelManifestsError
impl Debug for ChannelManifestsError
source§impl Display for ChannelManifestsError
impl Display for ChannelManifestsError
source§impl Error for ChannelManifestsError
impl Error for ChannelManifestsError
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
source§impl From<BaseCacheDirError> for ChannelManifestsError
impl From<BaseCacheDirError> for ChannelManifestsError
source§fn from(source: BaseCacheDirError) -> Self
fn from(source: BaseCacheDirError) -> Self
Converts to this type from the input type.
source§impl From<CachedClientError> for ChannelManifestsError
impl From<CachedClientError> for ChannelManifestsError
source§fn from(source: CachedClientError) -> Self
fn from(source: CachedClientError) -> Self
Converts to this type from the input type.
source§impl From<Error> for ChannelManifestsError
impl From<Error> for ChannelManifestsError
Auto Trait Implementations§
impl !RefUnwindSafe for ChannelManifestsError
impl Send for ChannelManifestsError
impl Sync for ChannelManifestsError
impl Unpin for ChannelManifestsError
impl !UnwindSafe for ChannelManifestsError
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more