Skip to main content

ReadFailure

Enum ReadFailure 

Source
pub enum ReadFailure<E> {
    Format(Error),
    Input(InputError<E>),
}
Expand description

A format operation may fail independently in PDF processing or in the caller’s asynchronous source. Opaque causes are never syntax diagnostics.

Variants§

§

Format(Error)

Original located PDF syntax, ambiguity, resource or capability cause.

§

Input(InputError<E>)

Original source snapshot/acquisition/resource cause and range.

Implementations§

Source§

impl<E> ReadFailure<E>

Source

pub fn is_terminal(&self) -> bool

Opaque acquisition, resource and source-identity refusals are terminal.

Trait Implementations§

Source§

impl<E: Debug> Debug for ReadFailure<E>

Source§

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

Formats the value using the given formatter. Read more
Source§

impl<E> From<Error> for ReadFailure<E>

Source§

fn from(error: Error) -> Self

Converts to this type from the input type.
Source§

impl<E> From<InputError<E>> for ReadFailure<E>

Source§

fn from(error: InputError<E>) -> Self

Converts to this type from the input type.
Source§

impl<E> From<ReadFailure<E>> for AssessmentError<E>

Source§

fn from(cause: ReadFailure<E>) -> Self

Converts to this type from the input type.

Auto Trait Implementations§

§

impl<E> Freeze for ReadFailure<E>
where InputError<E>: Freeze,

§

impl<E> RefUnwindSafe for ReadFailure<E>

§

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

§

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

§

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

§

impl<E> UnsafeUnpin for ReadFailure<E>

§

impl<E> UnwindSafe for ReadFailure<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.