Enum patchify::server::ReleaseError
source · #[non_exhaustive]pub enum ReleaseError {
Invalid(Version, PathBuf),
Missing(Version, PathBuf),
Unreadable(Version, ErrorKind, String),
}
Expand description
Errors that can occur in relation to releases.
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.
Invalid(Version, PathBuf)
A release file failed the SHA256 hash check.
Missing(Version, PathBuf)
A release file does not exist.
Unreadable(Version, ErrorKind, String)
A release file is unreadable.
Trait Implementations§
source§impl Clone for ReleaseError
impl Clone for ReleaseError
source§fn clone(&self) -> ReleaseError
fn clone(&self) -> ReleaseError
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for ReleaseError
impl Debug for ReleaseError
source§impl Display for ReleaseError
impl Display for ReleaseError
source§impl Error for ReleaseError
impl Error for ReleaseError
1.30.0 · 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 PartialEq for ReleaseError
impl PartialEq for ReleaseError
source§fn eq(&self, other: &ReleaseError) -> bool
fn eq(&self, other: &ReleaseError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for ReleaseError
impl StructuralPartialEq for ReleaseError
Auto Trait Implementations§
impl Freeze for ReleaseError
impl RefUnwindSafe for ReleaseError
impl Send for ReleaseError
impl Sync for ReleaseError
impl Unpin for ReleaseError
impl UnwindSafe for ReleaseError
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
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.