#[non_exhaustive]pub enum AssetPathError {
NotFound,
CannotRepresentAsPath,
}Expand description
An error that can occur when resolving an asset to a path. Not all platforms can represent assets as paths, an error may mean that the asset doesn’t exist or it cannot be represented as a path.
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.
NotFound
The asset was not found by the resolver.
CannotRepresentAsPath
The asset may exist, but it cannot be represented as a path.
Trait Implementations§
Source§impl Debug for AssetPathError
impl Debug for AssetPathError
Source§impl Display for AssetPathError
impl Display for AssetPathError
Source§impl Error for AssetPathError
impl Error for AssetPathError
1.30.0 · 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()
Auto Trait Implementations§
impl Freeze for AssetPathError
impl RefUnwindSafe for AssetPathError
impl Send for AssetPathError
impl Sync for AssetPathError
impl Unpin for AssetPathError
impl UnwindSafe for AssetPathError
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