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 Clone for Error

source§

fn clone(&self) -> Error

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for Error

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Display for Error

source§

fn fmt(&self, __formatter: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Error for Error

1.30.0 · source§

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

👎Deprecated since 1.42.0: use the Display impl or to_string()
1.0.0 · source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type based access to context intended for error reports. Read more
source§

impl PartialEq<Error> for Error

source§

fn eq(&self, other: &Error) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl StructuralPartialEq for Error