Type Alias wick_asset_reference::Error
source · pub type Error = Error;Expand description
The crate’s error type.
Aliased Type§
enum Error {
BadUrl(String),
LoadError(PathBuf),
PullFailed(PathBuf, String),
NormalizationFailure(String, String),
NotFound(PathBuf),
Unresolvable(String),
FileEscapesRoot(PathBuf, String),
}Variants§
BadUrl(String)
Location reference was not a URL or package reference
LoadError(PathBuf)
Could not load file.
PullFailed(PathBuf, String)
Remote fetch failed.
NormalizationFailure(String, String)
Local path normalization failed.
NotFound(PathBuf)
Could not find file or directory.
Unresolvable(String)
Could not resolve a location to a filesystem path or an OCI reference.
FileEscapesRoot(PathBuf, String)
Error returned when a file path does not reside in a target directory.
Trait Implementations§
source§impl Error for Error
impl Error for Error
1.30.0 · 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()