pub enum InspectionError {
LimitExceeded {
resource: InspectionResource,
actual: u64,
limit: u64,
},
UnsupportedEncoding,
Parse(BinaryReaderError),
DuplicateExport {
offset: usize,
},
UnknownSection {
id: u8,
offset: usize,
},
}Expand description
A structural inspection failed without yielding partial facts.
Variants§
LimitExceeded
A caller-supplied resource bound was exceeded.
Fields
§
resource: InspectionResourceResource being counted.
UnsupportedEncoding
A component was supplied instead of a core module.
Parse(BinaryReaderError)
Framing, section ordering, or an inspected vector is malformed.
DuplicateExport
Export names must be unique regardless of export kind.
UnknownSection
An unknown core section cannot be interpreted as artifact evidence.
Trait Implementations§
Source§impl Debug for InspectionError
impl Debug for InspectionError
Source§impl Display for InspectionError
impl Display for InspectionError
Source§impl Error for InspectionError
impl Error for InspectionError
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 From<Error> for InspectionError
impl From<Error> for InspectionError
Source§fn from(source: BinaryReaderError) -> Self
fn from(source: BinaryReaderError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for InspectionError
impl RefUnwindSafe for InspectionError
impl Send for InspectionError
impl Sync for InspectionError
impl Unpin for InspectionError
impl UnsafeUnpin for InspectionError
impl UnwindSafe for InspectionError
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