Enum tuf::Error
[−]
[src]
pub enum Error { CanonicalJsonError(String), ExpiredMetadata(Role), Generic(String), Http(String), InvalidConfig(String), Io(String), Json(String), MetadataHashMismatch(Role), MissingMetadata(Role), NonUniqueSignatures, NoSupportedHashAlgorithms, OversizedMetadata(Role), OversizedTarget, TargetHashMismatch, UnknownRole(String), UnknownTarget, UnmetThreshold(Role), UnsupportedKeyType(String), UnsupportedSignatureScheme(String), VerificationFailure(String), VersionDecrease(Role), }
Error type for all TUF related errors.
Variants
CanonicalJsonError(String)
Errors for converting JSON to canonical JSON.
ExpiredMetadata(Role)
The metadata for the given role has expired.
Generic(String)
Generic error type for more opaque error reporting.
Http(String)
An HTTP or network error.
InvalidConfig(String)
The TUF configuration was invalid.
Io(String)
Wrapper for IO errors.
Json(String)
There was an error parsing JSON.
MetadataHashMismatch(Role)
The calculated and provided hashes for the matadata did not match.
MissingMetadata(Role)
A necessary piece of metadata was missing.
NonUniqueSignatures
The signed metadata had duplicate signatures from a particular key.
NoSupportedHashAlgorithms
The metadata did not provide any hash algorithms that this library can calculate.
OversizedMetadata(Role)
A piece of metadata exceeded the provided or maximum allowed size.
OversizedTarget
The targets exceeded the provided size.
TargetHashMismatch
The calculated and provided hashes for the target did not match.
UnknownRole(String)
An unknown role type was parsed and rejected.
UnknownTarget
The target does not exist in valid metadata.
UnmetThreshold(Role)
The role did not have enough signatures to meet the required threshold.
UnsupportedKeyType(String)
The key type was not supported by this library.
UnsupportedSignatureScheme(String)
The signature scheme was not supported by this library.
VerificationFailure(String)
There was an error in the verification process.
VersionDecrease(Role)
A piece of metadata decreased its version when not allowed.
Methods
impl Error
[src]
Trait Implementations
impl Debug for Error
[src]
impl PartialEq for Error
[src]
fn eq(&self, __arg_0: &Error) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Error) -> bool
This method tests for !=
.
impl Eq for Error
[src]
impl From<Error> for Error
[src]
impl From<Error> for Error
[src]
impl From<Error> for Error
[src]
impl From<ParseError> for Error
[src]
fn from(err: ParseError) -> Error
Performs the conversion.