#[non_exhaustive]pub enum AuthoringError {
Show 15 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),
}Expand description
Errors that may occur while building a package from a directory, a
wasmer.toml manifest, or a tarball.
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
Trait Implementations§
Source§impl Debug for AuthoringError
impl Debug for AuthoringError
Source§impl Display for AuthoringError
impl Display for AuthoringError
Source§impl Error for AuthoringError
impl Error for AuthoringError
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<AuthoringError> for WasmerPackageError
impl From<AuthoringError> for WasmerPackageError
Source§fn from(source: AuthoringError) -> Self
fn from(source: AuthoringError) -> Self
Converts to this type from the input type.
Source§impl From<Error> for AuthoringError
impl From<Error> for AuthoringError
Source§impl From<Error> for AuthoringError
impl From<Error> for AuthoringError
Source§impl From<Error> for AuthoringError
impl From<Error> for AuthoringError
Source§impl From<ManifestError> for AuthoringError
impl From<ManifestError> for AuthoringError
Source§fn from(source: ManifestError) -> Self
fn from(source: ManifestError) -> Self
Converts to this type from the input type.
Source§impl From<ValidationError> for AuthoringError
impl From<ValidationError> for AuthoringError
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 AuthoringError
impl !RefUnwindSafe for AuthoringError
impl Send for AuthoringError
impl Sync for AuthoringError
impl Unpin for AuthoringError
impl UnsafeUnpin for AuthoringError
impl !UnwindSafe for AuthoringError
Blanket Implementations§
§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
§type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
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
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>
Converts
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>
Converts
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§impl<T> LayoutRaw for T
impl<T> LayoutRaw for T
§fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
Returns the layout of the type.