pub enum Error {
ArcInvalid {
arc: u32,
},
ArcTooBig,
Base128,
DigitExpected {
actual: u8,
},
Empty,
Length,
NotEnoughArcs,
TrailingDot,
}
Available on crate feature
pkcs8
only.Expand description
OID errors.
Variants§
ArcInvalid
Arc exceeds allowed range (i.e. for first or second OID)
ArcTooBig
Arc is too big (exceeds 32-bit limits of this library).
Technically the size of an arc is not constrained by X.660, however
this library has elected to use u32
as the arc representation as
sufficient for PKIX/PKCS usages.
Base128
Base 128 encoding error (used in BER/DER serialization of arcs).
DigitExpected
Expected a digit, but was provided something else.
Empty
Input data is empty.
Length
OID length is invalid (too short or too long).
NotEnoughArcs
Minimum 3 arcs required.
TrailingDot
Trailing .
character at end of input.
Trait Implementations§
§impl Ord for Error
impl Ord for Error
§impl PartialOrd<Error> for Error
impl PartialOrd<Error> for Error
§fn partial_cmp(&self, other: &Error) -> Option<Ordering>
fn partial_cmp(&self, other: &Error) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read more