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 Error for Error
impl Error for Error
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
source§impl Ord for Error
impl Ord for Error
source§impl PartialEq for Error
impl PartialEq for Error
source§impl PartialOrd for Error
impl PartialOrd 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