Enum marine_module_info_parser::manifest::ManifestError [−][src]
pub enum ManifestError { NotEnoughBytesForPrefix(&'static str), NotEnoughBytesForField(&'static str, usize), FieldNotValidUtf8(&'static str, Utf8Error), TooBigFieldSize(&'static str, u64), ModuleVersionCorrupted(SemVerError), 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.
Manifest of a Wasm file doesn’t have enough bytes to read a field.
Manifest of a Wasm file doesn’t have enough bytes to read field.
Size inside prefix of a field is too big (it exceeds usize or overflows with prefix size).
ModuleVersionCorrupted(SemVerError)
Version can’t be parsed with semver.
Manifest contains some trailing characters.
DateTimeParseError(ParseError)
Error occurred while parsing embedded build time.
Trait Implementations
impl Debug for ManifestError
[src]
impl Debug for ManifestError
[src]impl Display for ManifestError
[src]
impl Display for ManifestError
[src]impl Error for ManifestError
[src]
impl Error for ManifestError
[src]fn source(&self) -> Option<&(dyn Error + 'static)>
[src]
fn source(&self) -> Option<&(dyn Error + 'static)>
[src]The lower-level source of this error, if any. Read more
fn backtrace(&self) -> Option<&Backtrace>
[src]
fn backtrace(&self) -> Option<&Backtrace>
[src]backtrace
)Returns a stack backtrace, if available, of where this error occurred. Read more
fn description(&self) -> &str
1.0.0[src]
fn description(&self) -> &str
1.0.0[src]use the Display impl or to_string()
impl From<ManifestError> for ModuleInfoError
[src]
impl From<ManifestError> for ModuleInfoError
[src]fn from(source: ManifestError) -> Self
[src]
fn from(source: ManifestError) -> Self
[src]Performs the conversion.
impl From<ParseError> for ManifestError
[src]
impl From<ParseError> for ManifestError
[src]fn from(source: ParseError) -> Self
[src]
fn from(source: ParseError) -> Self
[src]Performs the conversion.
impl From<SemVerError> for ManifestError
[src]
impl From<SemVerError> for ManifestError
[src]fn from(source: SemVerError) -> Self
[src]
fn from(source: SemVerError) -> Self
[src]Performs the conversion.
impl PartialEq<ManifestError> for ManifestError
[src]
impl PartialEq<ManifestError> for ManifestError
[src]fn eq(&self, other: &ManifestError) -> bool
[src]
fn eq(&self, other: &ManifestError) -> bool
[src]This method tests for self
and other
values to be equal, and is used
by ==
. Read more
fn ne(&self, other: &ManifestError) -> bool
[src]
fn ne(&self, other: &ManifestError) -> bool
[src]This method tests for !=
.
impl StructuralPartialEq for ManifestError
[src]
Auto Trait Implementations
impl RefUnwindSafe for ManifestError
impl Send for ManifestError
impl Sync for ManifestError
impl Unpin for ManifestError
impl UnwindSafe for ManifestError
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> Same<T> for T
impl<T> Same<T> for T
type Output = T
type Output = T
Should always be Self