pub enum Error {
}integrity only.Expand description
HTTP integrity construction, parsing, or verification failure.
Variants§
InvalidField(&'static str)
A Structured Field is malformed or has the wrong semantic type.
MissingComponent(String)
A field or derived component is unavailable in this message context.
InvalidComponent(String)
A component identifier or its parameters cannot be processed.
InvalidTargetUri
The message context lacks a valid, absolute HTTP(S) target URI.
DuplicateComponent
Covered components must be unique, regardless of parameter ordering.
DuplicateLabel
Reusing a signature label would make selection ambiguous.
ContentDigest
SHA-256 was absent, malformed, or did not match the message content.
Algorithm
An algorithm other than Ed25519 was requested or asserted.
Signature
Ed25519 verification failed.
Policy(&'static str)
A required profile constraint was not satisfied.
Limit
Integrity metadata exceeded the documented parsing limits.
FrameOrder
A frame appeared after trailers, or more than one trailer frame appeared.
Streaming trailers cannot be used with these HTTP semantics.
Random(String)
OS entropy could not be obtained.
Clock
The wall clock cannot be represented as a nonnegative UNIX timestamp.
Trait Implementations§
Source§impl Error for Error
impl Error for Error
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()