#[non_exhaustive]pub enum ErrorCode {
Show 16 variants
Encoding(ErrorCode),
ForeignReader,
MissingField,
UnexpectedField,
TrailingData,
EmptySequence,
DuplicateExtension,
MalformedTime,
TimeOutOfRange,
UnsupportedVersion,
UnsupportedNameSyntax,
AlgorithmMismatch,
MalformedValue,
DefaultWritten,
ValueTooLarge,
DigestOutput,
}Expand description
Why a certificate could not be read.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Encoding(ErrorCode)
The bytes are not the encoding the schema asks for here.
ForeignReader
The caller supplied another parser for a producing-reader operation.
MissingField
A field the schema requires is absent.
UnexpectedField
A field is present that this version of the structure does not have.
TrailingData
Bytes after the end of a structure that should have used all of them.
EmptySequence
A sequence that must hold at least one member holds none.
DuplicateExtension
The same extension appears more than once, leaving no answer to which of them applies.
MalformedTime
A time that is not the fixed-width form with seconds and Z that
certificates are required to use.
TimeOutOfRange
A time whose fields name a moment that does not exist.
UnsupportedVersion
A version number this crate does not know.
UnsupportedNameSyntax
An RFC 4514 attribute requires unavailable syntax or equality semantics.
AlgorithmMismatch
The algorithm named outside the signed bytes is not the one named inside them.
MalformedValue
A value the schema constrains further than its encoding does.
DefaultWritten
A DER component explicitly writes its ASN.1 DEFAULT value.
ValueTooLarge
A value too large for the type this crate represents it in.
DigestOutput
A digest provider returned output contradicting its own identity’s fixed width: a provider contract failure, not a document fault.