Enum Error

pub enum Error

OID errors.

Variants

ArcInvalid { arc: Arc }

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 { actual: u8 }

Expected a digit, but was provided something else.

Empty

Input data is empty.

Length

OID length is invalid (too short or too long).

Overflow

Arithmetic overflow (or underflow) errors.

These generally indicate a bug in the const-oid crate.

RepeatedDot

Repeated .. characters in input data.

TrailingDot

Trailing . character at end of input.

Trait Implementations

impl Clone for Error

fn clone(&self) -> Error

impl Copy for Error

impl Debug for Error

fn fmt(&self, f: &mut Formatter<'_>) -> Result

impl Display for Error

fn fmt(&self, f: &mut Formatter<'_>) -> Result

impl Eq for Error

impl Error for Error

impl Ord for Error

fn cmp(&self, other: &Error) -> Ordering

impl PartialEq for Error

fn eq(&self, other: &Error) -> bool

impl PartialOrd for Error

fn partial_cmp(&self, other: &Error) -> Option<Ordering>

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 UnsafeUnpin for Error

impl UnwindSafe for Error

Blanket Implementations

impl<T> Any for Error where T: 'static + ?Sized,

fn type_id(&self) -> TypeId

impl<T> Borrow<T> for Error where T: ?Sized,

fn borrow(&self) -> &T

impl<T> BorrowMut<T> for Error where T: ?Sized,

fn borrow_mut(&mut self) -> &mut T

impl<T> CloneToUninit for Error where T: Clone,

unsafe fn clone_to_uninit(&self, dest: *mut u8)

impl<T> From<T> for Error

fn from(t: T) -> T

Returns the argument unchanged.

impl<T, U> Into<U> for Error where U: From<T>,

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of [From]<T> for U chooses to do.

impl<T, U> TryFrom<U> for Error where U: Into<T>,

type Error = never;
fn try_from(value: U) -> Result<T, never>

impl<T, U> TryInto<U> for Error where U: TryFrom<T>,

type Error = <U as TryFrom<T>>::Error;
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>