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 PartialOrd for Error
impl PartialOrd for Error
impl 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§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
)