#[non_exhaustive]pub enum ErrorCode {
Encoding(ErrorCode),
MissingField,
UnexpectedField,
TrailingData,
EmptySequence,
DuplicateExtension,
MalformedTime,
TimeOutOfRange,
UnsupportedVersion,
AlgorithmMismatch,
MalformedValue,
ValueTooLarge,
}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.
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.
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.
ValueTooLarge
A value too large for the type this crate represents it in.