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

Errors for converting JSON to canonical JSON.

The metadata for the given role has expired.

Generic error type for more opaque error reporting.

An HTTP or network error.

The TUF configuration was invalid.

Wrapper for IO errors.

There was an error parsing JSON.

The calculated and provided hashes for the matadata did not match.

A necessary piece of metadata was missing.

The signed metadata had duplicate signatures from a particular key.

The metadata did not provide any hash algorithms that this library can calculate.

A piece of metadata exceeded the provided or maximum allowed size.

The targets exceeded the provided size.

The calculated and provided hashes for the target did not match.

An unknown role type was parsed and rejected.

The target does not exist in valid metadata.

The role did not have enough signatures to meet the required threshold.

The key type was not supported by this library.

The signature scheme was not supported by this library.

There was an error in the verification process.

A piece of metadata decreased its version when not allowed.

Methods

impl Error
[src]

Trait Implementations

impl Debug for Error
[src]

Formats the value using the given formatter.

impl PartialEq for Error
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Eq for Error
[src]

impl From<Error> for Error
[src]

Performs the conversion.

impl From<Error> for Error
[src]

Performs the conversion.

impl From<Error> for Error
[src]

Performs the conversion.

impl From<ParseError> for Error
[src]

Performs the conversion.