Enum webc::compat::ContainerError
source · #[non_exhaustive]
pub enum ContainerError {
Detect(DetectError),
UnsupportedVersion(Version),
V1(Error),
V2Owned(OwnedReaderError),
WasmerPackage(WasmerPackageError),
Open {
path: PathBuf,
error: Error,
},
Read {
path: PathBuf,
error: Error,
},
}
Expand description
Various errors that may occur during Container
operations.
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.
Detect(DetectError)
Unable to detect the WEBC version.
UnsupportedVersion(Version)
An unsupported WEBC version was found.
V1(Error)
An error occurred while parsing a v1 WEBC file.
V2Owned(OwnedReaderError)
An error occurred while parsing a v2 WEBC file.
WasmerPackage(WasmerPackageError)
an error occurred while loading a Wasmer package from disk.
Open
Unable to open a file.
Read
Unable to read a file’s contents into memory.
Trait Implementations§
source§impl Debug for ContainerError
impl Debug for ContainerError
source§impl Display for ContainerError
impl Display for ContainerError
source§impl Error for ContainerError
impl Error for ContainerError
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<DetectError> for ContainerError
impl From<DetectError> for ContainerError
source§fn from(source: DetectError) -> Self
fn from(source: DetectError) -> Self
Converts to this type from the input type.
source§impl From<Error> for ContainerError
impl From<Error> for ContainerError
source§impl From<OwnedReaderError> for ContainerError
impl From<OwnedReaderError> for ContainerError
source§fn from(source: OwnedReaderError) -> Self
fn from(source: OwnedReaderError) -> 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.