pub enum UpdateVerifyError {
UnknownPublisher {
publisher_id: String,
},
PayloadHashMismatch {
package_id: String,
version: String,
},
InvalidSignature {
package_id: String,
version: String,
},
}Expand description
Errors produced by UpdateVerifier::verify.
Variants§
UnknownPublisher
No key has been registered for the given publisher.
PayloadHashMismatch
The BLAKE3 hash of the supplied payload does not match the update manifest.
InvalidSignature
The publisher signature is invalid or was produced by a different key.
Trait Implementations§
Source§impl Debug for UpdateVerifyError
impl Debug for UpdateVerifyError
Source§impl Display for UpdateVerifyError
impl Display for UpdateVerifyError
Source§impl Error for UpdateVerifyError
impl Error for UpdateVerifyError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns 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 UpdateVerifyError
impl PartialEq for UpdateVerifyError
impl Eq for UpdateVerifyError
impl StructuralPartialEq for UpdateVerifyError
Auto Trait Implementations§
impl Freeze for UpdateVerifyError
impl RefUnwindSafe for UpdateVerifyError
impl Send for UpdateVerifyError
impl Sync for UpdateVerifyError
impl Unpin for UpdateVerifyError
impl UnsafeUnpin for UpdateVerifyError
impl UnwindSafe for UpdateVerifyError
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