pub enum Error {
ArcInvalid {
arc: Arc,
},
ArcTooBig,
Base128,
DigitExpected {
actual: u8,
},
Empty,
Length,
NotEnoughArcs,
TrailingDot,
}
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§
source§impl Ord for Error
impl Ord for Error
source§impl PartialEq<Error> for Error
impl PartialEq<Error> for Error
source§impl PartialOrd<Error> for Error
impl PartialOrd<Error> for Error
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 moreimpl Copy for Error
impl Eq for Error
impl StructuralEq for Error
impl StructuralPartialEq for Error
Auto Trait Implementations§
impl RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnwindSafe for Error
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more