#[non_exhaustive]pub enum WasmerPackageError {
Show 17 variants
TempDir(Error),
FileOpen {
path: PathBuf,
error: Error,
},
FileRead {
path: PathBuf,
error: Error,
},
IoError(Error),
MalformedPath(PathBuf),
Tarball(Error),
TomlDeserialize {
path: PathBuf,
error: Error,
},
JsonDeserialize {
path: PathBuf,
error: Error,
},
MissingManifest,
Canonicalize {
path: PathBuf,
error: Error,
},
Manifest(ManifestError),
Validation(ValidationError),
PathNotExists {
path: PathBuf,
},
VolumeCreation(Error),
SerdeError(Error),
ContainerError(ContainerError),
DetectError(DetectError),
}
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.
IoError(Error)
Generic IO error.
MalformedPath(PathBuf)
Unexpected path format
Tarball(Error)
Unable to extract the tarball.
TomlDeserialize
Unable to deserialize the wasmer.toml
file.
JsonDeserialize
Unable to deserialize a json 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.
PathNotExists
A path in the fs mapping does not exist
VolumeCreation(Error)
Any error happening when populating the volumes tree map of a package
SerdeError(Error)
Error when serializing or deserializing
ContainerError(ContainerError)
Container Error
DetectError(DetectError)
Detect 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)>
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<ContainerError> for WasmerPackageError
impl From<ContainerError> for WasmerPackageError
Source§fn from(source: ContainerError) -> Self
fn from(source: ContainerError) -> Self
Converts to this type from the input type.
Source§impl From<DetectError> for WasmerPackageError
impl From<DetectError> for WasmerPackageError
Source§fn from(source: DetectError) -> Self
fn from(source: DetectError) -> Self
Converts to this type from the input type.
Source§impl From<Error> for WasmerPackageError
impl From<Error> for WasmerPackageError
Source§impl From<Error> for WasmerPackageError
impl From<Error> for WasmerPackageError
Source§impl From<Error> for WasmerPackageError
impl From<Error> for WasmerPackageError
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.
Auto Trait Implementations§
impl !Freeze for WasmerPackageError
impl !RefUnwindSafe for WasmerPackageError
impl Send for WasmerPackageError
impl Sync for WasmerPackageError
impl Unpin for WasmerPackageError
impl !UnwindSafe for WasmerPackageError
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