pub enum AssetPipelineError {
Asset(AssetError),
NonUtf8Path(PathBuf),
SourceOutsideProject(Utf8PathBuf),
UnsafePath(Utf8PathBuf),
SourceTooLarge {
path: Utf8PathBuf,
size: u64,
},
Decode {
role: &'static str,
source: ImageError,
},
Encode {
path: Utf8PathBuf,
source: ImageError,
},
NotReleaseReady {
issues: Vec<AssetIssue>,
},
InvalidCache(Utf8PathBuf),
Json(Error),
Io {
operation: &'static str,
path: Utf8PathBuf,
source: Error,
},
}Expand description
Asset validation or deterministic platform generation failure.
Variants§
Asset(AssetError)
Project source assets are missing or malformed.
NonUtf8Path(PathBuf)
A path could not be represented in protocol and manifest output.
SourceOutsideProject(Utf8PathBuf)
A source path escaped the selected project.
UnsafePath(Utf8PathBuf)
A source or generated path crossed a symlink or non-directory boundary.
SourceTooLarge
A custom source exceeded the bounded decoder input.
Decode
A source was structurally readable but not a supported PNG.
Encode
A generated derivative could not be encoded.
NotReleaseReady
Sources are valid PNG files but not release-ready.
Fields
§
issues: Vec<AssetIssue>Exact actionable failures.
InvalidCache(Utf8PathBuf)
An existing fingerprint directory was incomplete or inconsistent.
Json(Error)
JSON manifest/catalog serialization or parsing failed.
Io
Filesystem operation failed.
Trait Implementations§
Source§impl Debug for AssetPipelineError
impl Debug for AssetPipelineError
Source§impl Display for AssetPipelineError
impl Display for AssetPipelineError
Source§impl Error for AssetPipelineError
impl Error for AssetPipelineError
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<AssetError> for AssetPipelineError
impl From<AssetError> for AssetPipelineError
Source§fn from(source: AssetError) -> Self
fn from(source: AssetError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for AssetPipelineError
impl !UnwindSafe for AssetPipelineError
impl Freeze for AssetPipelineError
impl Send for AssetPipelineError
impl Sync for AssetPipelineError
impl Unpin for AssetPipelineError
impl UnsafeUnpin for AssetPipelineError
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