pub enum NativeArtifactFrameError {
TooShort {
artifact: &'static str,
},
InvalidMagic {
artifact: &'static str,
},
Truncated {
artifact: &'static str,
offset: usize,
reason: &'static str,
},
InvalidUtf8 {
offset: usize,
},
EntryCountMismatch {
expected: u64,
seen: u64,
},
}Expand description
Errors decoding a native index artifact.
Variants§
Trait Implementations§
Source§impl Clone for NativeArtifactFrameError
impl Clone for NativeArtifactFrameError
Source§fn clone(&self) -> NativeArtifactFrameError
fn clone(&self) -> NativeArtifactFrameError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 NativeArtifactFrameError
impl Debug for NativeArtifactFrameError
Source§impl Display for NativeArtifactFrameError
impl Display for NativeArtifactFrameError
impl Eq for NativeArtifactFrameError
Source§impl Error for NativeArtifactFrameError
impl Error for NativeArtifactFrameError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl PartialEq for NativeArtifactFrameError
impl PartialEq for NativeArtifactFrameError
impl StructuralPartialEq for NativeArtifactFrameError
Auto Trait Implementations§
impl Freeze for NativeArtifactFrameError
impl RefUnwindSafe for NativeArtifactFrameError
impl Send for NativeArtifactFrameError
impl Sync for NativeArtifactFrameError
impl Unpin for NativeArtifactFrameError
impl UnsafeUnpin for NativeArtifactFrameError
impl UnwindSafe for NativeArtifactFrameError
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