pub enum SignedVerdictError {
UnsupportedFormatVersion {
found: u8,
supported: u8,
},
UnsupportedSchemaVersion {
found: u32,
supported: u32,
},
BodyDigestMismatch {
signed: ContentHash,
recomputed: ContentHash,
},
InvalidSignedAt(String),
InvalidPublicKeyEncoding(FromHexError),
InvalidSignatureEncoding(FromHexError),
Signer(SignerError),
}Expand description
Errors returned while creating or verifying a signed CI verdict.
Variants§
UnsupportedFormatVersion
The serialized envelope format is not supported.
Fields
UnsupportedSchemaVersion
The embedded body schema cannot be verified by this implementation.
Fields
BodyDigestMismatch
The embedded body no longer hashes to the signed content hash.
Fields
§
signed: ContentHashDigest carried by the signed envelope.
§
recomputed: ContentHashDigest recomputed from the embedded body.
InvalidSignedAt(String)
The signed timestamp is not RFC3339.
InvalidPublicKeyEncoding(FromHexError)
The embedded public key is not valid hexadecimal.
InvalidSignatureEncoding(FromHexError)
The embedded signature is not valid hexadecimal.
Signer(SignerError)
The shared signing backend rejected the operation.
Trait Implementations§
Source§impl Debug for SignedVerdictError
impl Debug for SignedVerdictError
Source§impl Display for SignedVerdictError
impl Display for SignedVerdictError
Source§impl Error for SignedVerdictError
impl Error for SignedVerdictError
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 From<SignerError> for SignedVerdictError
impl From<SignerError> for SignedVerdictError
Source§fn from(source: SignerError) -> Self
fn from(source: SignerError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for SignedVerdictError
impl !UnwindSafe for SignedVerdictError
impl Freeze for SignedVerdictError
impl Send for SignedVerdictError
impl Sync for SignedVerdictError
impl Unpin for SignedVerdictError
impl UnsafeUnpin for SignedVerdictError
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