#[non_exhaustive]
pub enum Error {
Show 15 variants
BadSignature,
Encoding(String),
ExpiredMetadata(Role),
IllegalArgument(String),
Http(Error),
BadHttpStatus {
code: StatusCode,
uri: String,
},
Hyper(Error),
MissingMetadata(Role),
NoSupportedHashAlgorithm,
NotFound,
Opaque(String),
Programming(String),
TargetUnavailable,
UnknownKeyType(String),
VerificationFailure(String),
}Expand description
Error type for all TUF related errors.
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
BadSignature
The metadata had a bad signature.
Encoding(String)
There was a problem encoding or decoding.
ExpiredMetadata(Role)
Metadata was expired.
IllegalArgument(String)
An illegal argument was passed into a function.
Http(Error)
Generic error for HTTP connections.
BadHttpStatus
Unexpected HTTP response status.
Hyper(Error)
Errors that can occur parsing HTTP streams.
MissingMetadata(Role)
The metadata was missing, so an operation could not be completed.
NoSupportedHashAlgorithm
There were no available hash algorithms.
NotFound
The metadata or target was not found.
Opaque(String)
Opaque error type, to be interpreted similar to HTTP 500. Something went wrong, and you may or may not be able to do anything about it.
Programming(String)
There was a library internal error. These errors are ALWAYS bugs and should be reported.
TargetUnavailable
The target is unavailable. This may mean it is either not in the metadata or the metadata chain to the target cannot be fully verified.
UnknownKeyType(String)
There is no known or available key type.
VerificationFailure(String)
The metadata or target failed to verify.
Implementations
Trait Implementations
Performs the conversion.
Performs the conversion.
Performs the conversion.
Auto Trait Implementations
impl !RefUnwindSafe for Error
impl !UnwindSafe for Error
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more