pub enum ManifestError {
NotEnoughBytesForPrefix(&'static str),
NotEnoughBytesForField(&'static str, usize),
FieldNotValidUtf8(&'static str, Utf8Error),
TooBigFieldSize(&'static str, u64),
ModuleVersionCorrupted(Error),
ManifestRemainderNotEmpty,
DateTimeParseError(ParseError),
}
Variants§
NotEnoughBytesForPrefix(&'static str)
Manifest of a Wasm file doesn’t have enough bytes to read size of a field from its prefix.
NotEnoughBytesForField(&'static str, usize)
Manifest of a Wasm file doesn’t have enough bytes to read a field.
FieldNotValidUtf8(&'static str, Utf8Error)
Manifest of a Wasm file doesn’t have enough bytes to read field.
TooBigFieldSize(&'static str, u64)
Size inside prefix of a field is too big (it exceeds usize or overflows with prefix size).
ModuleVersionCorrupted(Error)
Version can’t be parsed with semver.
ManifestRemainderNotEmpty
Manifest contains some trailing characters.
DateTimeParseError(ParseError)
Error occurred while parsing embedded build time.
Trait Implementations§
source§impl Debug for ManifestError
impl Debug for ManifestError
source§impl Display for ManifestError
impl Display for ManifestError
source§impl Error for ManifestError
impl Error for ManifestError
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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 ManifestError
impl From<Error> for ManifestError
source§fn from(source: SemVerError) -> Self
fn from(source: SemVerError) -> Self
Converts to this type from the input type.
source§impl From<ManifestError> for ModuleInfoError
impl From<ManifestError> for ModuleInfoError
source§fn from(source: ManifestError) -> Self
fn from(source: ManifestError) -> Self
Converts to this type from the input type.
source§impl From<ParseError> for ManifestError
impl From<ParseError> for ManifestError
source§fn from(source: ParseError) -> Self
fn from(source: ParseError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ManifestError
impl RefUnwindSafe for ManifestError
impl Send for ManifestError
impl Sync for ManifestError
impl Unpin for ManifestError
impl UnwindSafe for ManifestError
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