pub enum NativeArtifactError {
InvalidHeader(&'static str),
Truncated(&'static str),
InvalidUtf8,
EntryCountMismatch,
}Expand description
Errors raised while decoding a native artifact payload.
Variants§
InvalidHeader(&'static str)
The payload was shorter than its fixed header or had the wrong magic.
Truncated(&'static str)
A field ran past the end of the buffer.
InvalidUtf8
A length-prefixed string contained invalid UTF-8.
EntryCountMismatch
The RDDP header entry count disagreed with the decoded records.
Trait Implementations§
Source§impl Clone for NativeArtifactError
impl Clone for NativeArtifactError
Source§fn clone(&self) -> NativeArtifactError
fn clone(&self) -> NativeArtifactError
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 NativeArtifactError
impl Debug for NativeArtifactError
Source§impl Display for NativeArtifactError
impl Display for NativeArtifactError
impl Eq for NativeArtifactError
Source§impl Error for NativeArtifactError
impl Error for NativeArtifactError
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 NativeArtifactError
impl PartialEq for NativeArtifactError
Source§fn eq(&self, other: &NativeArtifactError) -> bool
fn eq(&self, other: &NativeArtifactError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for NativeArtifactError
Auto Trait Implementations§
impl Freeze for NativeArtifactError
impl RefUnwindSafe for NativeArtifactError
impl Send for NativeArtifactError
impl Sync for NativeArtifactError
impl Unpin for NativeArtifactError
impl UnsafeUnpin for NativeArtifactError
impl UnwindSafe for NativeArtifactError
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