Skip to main content

Error

Enum Error 

Source
pub enum Error<E> {
    Input(InputError<E>),
    Resource {
        range: Span,
        cause: MemoryError,
    },
    Limit {
        range: Span,
        kind: Limit,
    },
    Syntax {
        range: Span,
        kind: Syntax,
    },
    Unsupported {
        range: Span,
        kind: Unsupported,
    },
    Foreign {
        range: Span,
    },
}
Expand description

Processing refused before a successful complete result could be returned.

Variants§

§

Input(InputError<E>)

Original acquisition, snapshot or current/source execution refusal.

§

Resource

Current execution or actual-capacity refusal before work.

Fields

§range: Span

Physical original enclosure of the attempted operation.

§cause: MemoryError

Unchanged refusal cause.

§

Limit

A cumulative mechanism allowance refused the next operation.

Fields

§range: Span

Physical original enclosure.

§kind: Limit

Exhausted allowance.

§

Syntax

No unambiguous structural reading is available.

Fields

§range: Span

Physical original enclosure.

§kind: Syntax

Original structural cause.

§

Unsupported

The operation requires an unavailable ZIP capability.

Fields

§range: Span

Physical original enclosure.

§kind: Unsupported

Exact unavailable capability.

§

Foreign

A member, receipt or input belongs to another original archive view.

Fields

§range: Span

Actual attempted enclosure, without an invented inner position.

Trait Implementations§

Source§

impl<E: Debug> Debug for Error<E>

Source§

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

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

impl<E> From<InputError<E>> for Error<E>

Source§

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

Converts to this type from the input type.

Auto Trait Implementations§

§

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

§

impl<E> RefUnwindSafe for Error<E>

§

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

§

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

§

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

§

impl<E> UnsafeUnpin for Error<E>

§

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