#[non_exhaustive]pub enum ManifestError {
Show 14 variants
InvalidDependency(String),
SerializeCborAnnotation {
key: String,
error: Error,
},
UnknownAtomKind(String),
DuplicateModule(String),
ReadAtomFile {
module: String,
path: PathBuf,
error: Error,
},
DuplicateCommand(String),
UnknownRunnerKind(String),
#[non_exhaustive] MergeAnnotations {
command: String,
key: String,
},
InvalidModuleReference {
command: String,
module: String,
},
UndeclaredCommandDependency {
command: String,
dependency: String,
},
WasmerTomlAnnotations {
error: Box<dyn Error + Send + Sync>,
},
OutsideBaseDirectory {
path: PathBuf,
base_dir: PathBuf,
},
MissingFile {
path: PathBuf,
base_dir: PathBuf,
},
FileNotSupported,
}Expand description
Errors that may occur when converting from a wasmer_config::package::Manifest
into a WebC manifest.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
InvalidDependency(String)
A dependency specification had a syntax error.
SerializeCborAnnotation
Unable to serialize an annotation.
UnknownAtomKind(String)
Specified an unknown atom kind.
DuplicateModule(String)
A module was specified more than once.
ReadAtomFile
Unable to read a module’s source.
Fields
DuplicateCommand(String)
A command was specified more than once.
UnknownRunnerKind(String)
An unknown runner kind was specified.
#[non_exhaustive]MergeAnnotations
An error occurred while merging user-defined annotations in with automatically generated ones.
Fields
This variant is marked as non-exhaustive
InvalidModuleReference
A command uses a non-existent module.
UndeclaredCommandDependency
A command references a module from an undeclared dependency.
WasmerTomlAnnotations
Unable to deserialize custom annotations from the wasmer.toml
manifest.
OutsideBaseDirectory
The wasmer.toml file references a file outside of its base directory.
MissingFile
The manifest references a file that doesn’t exist.
FileNotSupported
File based commands are not supported for in-memory package creation
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)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
Source§impl From<ManifestError> for WasmerPackageError
impl From<ManifestError> for WasmerPackageError
Source§fn from(source: ManifestError) -> Self
fn from(source: ManifestError) -> Self
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§
§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
§type ArchivedMetadata = ()
type ArchivedMetadata = ()
§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more