#[non_exhaustive]pub enum SourceBundleErrorKind {
BadZip,
BadManifest,
BadDebugFile,
WriteFailed,
}
Expand description
The error type for SourceBundleError
.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
BadZip
The source bundle container is damanged.
BadManifest
An error when reading/writing the manifest.
BadDebugFile
The Object
contains invalid data and cannot be converted.
WriteFailed
Generic error when writing a source bundle, most likely IO.
Trait Implementations§
source§impl Clone for SourceBundleErrorKind
impl Clone for SourceBundleErrorKind
source§fn clone(&self) -> SourceBundleErrorKind
fn clone(&self) -> SourceBundleErrorKind
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for SourceBundleErrorKind
impl Debug for SourceBundleErrorKind
source§impl Display for SourceBundleErrorKind
impl Display for SourceBundleErrorKind
source§impl From<SourceBundleErrorKind> for SourceBundleError
impl From<SourceBundleErrorKind> for SourceBundleError
source§fn from(kind: SourceBundleErrorKind) -> SourceBundleError
fn from(kind: SourceBundleErrorKind) -> SourceBundleError
Converts to this type from the input type.
source§impl PartialEq for SourceBundleErrorKind
impl PartialEq for SourceBundleErrorKind
source§fn eq(&self, other: &SourceBundleErrorKind) -> bool
fn eq(&self, other: &SourceBundleErrorKind) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for SourceBundleErrorKind
impl Eq for SourceBundleErrorKind
impl StructuralEq for SourceBundleErrorKind
impl StructuralPartialEq for SourceBundleErrorKind
Auto Trait Implementations§
impl RefUnwindSafe for SourceBundleErrorKind
impl Send for SourceBundleErrorKind
impl Sync for SourceBundleErrorKind
impl Unpin for SourceBundleErrorKind
impl UnwindSafe for SourceBundleErrorKind
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
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.§impl<I, T> ExtractContext<I, ()> for T
impl<I, T> ExtractContext<I, ()> for T
§fn extract_context(self, _original_input: I)
fn extract_context(self, _original_input: I)
Given the context attached to a nom error, and given the original
input to the nom parser, extract more the useful context information. Read more
§impl<T> Indentable for Twhere
T: Display,
impl<T> Indentable for Twhere T: Display,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<I> RecreateContext<I> for I
impl<I> RecreateContext<I> for I
§fn recreate_context(_original_input: I, tail: I) -> I
fn recreate_context(_original_input: I, tail: I) -> I
Given the original input, as well as the context reported by nom,
recreate a context in the original string where the error occurred. Read more