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
§
cause: MemoryErrorUnchanged refusal cause.
Limit
A cumulative mechanism allowance refused the next operation.
Syntax
No unambiguous structural reading is available.
Unsupported
The operation requires an unavailable ZIP capability.
Foreign
A member, receipt or input belongs to another original archive view.
Trait Implementations§
Source§impl<E> From<InputError<E>> for Error<E>
impl<E> From<InputError<E>> for Error<E>
Source§fn from(cause: InputError<E>) -> Self
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>where
InputError<E>: RefUnwindSafe,
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>where
InputError<E>: UnsafeUnpin,
impl<E> UnwindSafe for Error<E>where
InputError<E>: UnwindSafe,
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