Enum webc::wasmer_package::WasmerPackageError
source · #[non_exhaustive]
pub enum WasmerPackageError {
TempDir(Error),
FileOpen {
path: PathBuf,
error: Error,
},
FileRead {
path: PathBuf,
error: Error,
},
Tarball(Error),
DeserializeWasmerToml {
path: PathBuf,
error: Error,
},
MissingManifest,
Canonicalize {
path: PathBuf,
error: Error,
},
Manifest(ManifestError),
Validation(ValidationError),
}
Expand description
Errors that may occur while loading a Wasmer package from disk.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
TempDir(Error)
Unable to create a temporary directory.
FileOpen
Unable to open a file.
FileRead
Unable to read a file.
Tarball(Error)
Unable to extract the tarball.
DeserializeWasmerToml
Unable to deserialize the wasmer.toml
file.
MissingManifest
Unable to find the wasmer.toml
file.
Canonicalize
Unable to canonicalize a path.
Manifest(ManifestError)
Unable to load the wasmer.toml
manifest.
Validation(ValidationError)
A manifest validation error.
Trait Implementations§
source§impl Debug for WasmerPackageError
impl Debug for WasmerPackageError
source§impl Display for WasmerPackageError
impl Display for WasmerPackageError
source§impl Error for WasmerPackageError
impl Error for WasmerPackageError
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<ManifestError> for WasmerPackageError
impl From<ManifestError> for WasmerPackageError
source§fn from(source: ManifestError) -> Self
fn from(source: ManifestError) -> Self
Converts to this type from the input type.
source§impl From<ValidationError> for WasmerPackageError
impl From<ValidationError> for WasmerPackageError
source§fn from(source: ValidationError) -> Self
fn from(source: ValidationError) -> Self
Converts to this type from the input type.
source§impl From<WasmerPackageError> for ContainerError
impl From<WasmerPackageError> for ContainerError
source§fn from(source: WasmerPackageError) -> Self
fn from(source: WasmerPackageError) -> Self
Converts to this type from the input type.