Skip to main content

ErrorOf

Enum ErrorOf 

Source
pub enum ErrorOf<E> {
    Pdf(ReadFailure<E>),
    Pkix {
        enclosure: Location,
        cause: Error,
    },
    Encoding {
        enclosure: Location,
        cause: Error,
    },
    Cms {
        enclosure: Location,
        cause: Error,
    },
}
Expand description

An ASN.1 or CMS diagnostic has coordinates in the decoded Contents value. Its physical enclosing string is retained separately, never added as if escape decoding were a one-to-one file-offset translation.

Variants§

§

Pdf(ReadFailure<E>)

Original PDF acquisition/processing failure.

§

Pkix

Original certificate/status cause with its actual PDF enclosure.

Fields

§enclosure: Location

Original encoded signature or timestamp enclosure.

§cause: Error

Unchanged certificate/status processing cause.

§

Encoding

Original ASN.1 decoding cause and honest physical enclosure.

Fields

§enclosure: Location

Original encoded PDF string enclosure.

§cause: Error

Unchanged ASN.1 cause in decoded Contents coordinates.

§

Cms

Original CMS cause and honest physical enclosure.

Fields

§enclosure: Location

Original encoded PDF string enclosure.

§cause: Error

Unchanged CMS cause in decoded Contents coordinates.

Implementations§

Source§

impl<E> ErrorOf<E>

Source

pub fn is_terminal(&self) -> bool

Terminal processing cannot be retained as an unreadable signature slot.

Trait Implementations§

Source§

impl<E: Debug> Debug for ErrorOf<E>

Source§

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

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl<E> !Freeze for ErrorOf<E>

§

impl<E> RefUnwindSafe for ErrorOf<E>

§

impl<E> Send for ErrorOf<E>
where ReadFailure<E>: Send,

§

impl<E> Sync for ErrorOf<E>
where ReadFailure<E>: Sync,

§

impl<E> Unpin for ErrorOf<E>
where ReadFailure<E>: Unpin,

§

impl<E> UnsafeUnpin for ErrorOf<E>

§

impl<E> UnwindSafe for ErrorOf<E>

Blanket Implementations§

Source§

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

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

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

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

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

Source§

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

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

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

Source§

fn into(self) -> U

Calls U::from(self).

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

Source§

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

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

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

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

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

Performs the conversion.