pub enum Error {
ArcInvalid {
arc: u32,
},
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 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 StructuralPartialEq for Error
Auto Trait Implementations§
impl Freeze for Error
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)