pub enum WITParserError {
NoITSection,
MultipleITSections,
ITRemainderNotEmpty,
CorruptedITSection(Err<(Vec<u8>, ErrorKind)>),
IncorrectITFormat(String),
CorruptedITFile(Error),
CorruptedWasmFile(Error),
AstToBytesError(Error),
WasmEmitError(Error),
}
Variants§
NoITSection
WIT section is absent.
MultipleITSections
Multiple WIT sections.
ITRemainderNotEmpty
WIT section remainder isn’t empty.
CorruptedITSection(Err<(Vec<u8>, ErrorKind)>)
An error occurred while parsing WIT section.
IncorrectITFormat(String)
An error related to incorrect data of wit section.
CorruptedITFile(Error)
An error occurred while parsing file in Wat format.
CorruptedWasmFile(Error)
An error occurred while parsing Wasm file.
AstToBytesError(Error)
An error occurred while manipulating with converting ast to bytes.
WasmEmitError(Error)
Wasm emitting file error.
Trait Implementations§
Source§impl Debug for WITParserError
impl Debug for WITParserError
Source§impl Display for WITParserError
impl Display for WITParserError
Source§impl Error for WITParserError
impl Error for WITParserError
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 WITParserError
impl From<Error> for WITParserError
Auto Trait Implementations§
impl Freeze for WITParserError
impl !RefUnwindSafe for WITParserError
impl Send for WITParserError
impl Sync for WITParserError
impl Unpin for WITParserError
impl !UnwindSafe for WITParserError
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