#[non_exhaustive]pub enum AssetResolveError {
Native(NativeAssetResolveError),
Web(WebAssetResolveError),
UnsupportedPlatform,
}Expand description
An error that can occur when resolving an asset.
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.
Native(NativeAssetResolveError)
An error occurred while resolving a native asset.
Web(WebAssetResolveError)
An error occurred while resolving a web asset.
UnsupportedPlatform
An error that occurs when no asset resolver is available for the current platform.
Trait Implementations§
Source§impl Debug for AssetResolveError
impl Debug for AssetResolveError
Source§impl Display for AssetResolveError
impl Display for AssetResolveError
Source§impl Error for AssetResolveError
impl Error for AssetResolveError
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<NativeAssetResolveError> for AssetResolveError
impl From<NativeAssetResolveError> for AssetResolveError
Source§fn from(source: NativeAssetResolveError) -> Self
fn from(source: NativeAssetResolveError) -> Self
Converts to this type from the input type.
Source§impl From<WebAssetResolveError> for AssetResolveError
impl From<WebAssetResolveError> for AssetResolveError
Source§fn from(source: WebAssetResolveError) -> Self
fn from(source: WebAssetResolveError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for AssetResolveError
impl !RefUnwindSafe for AssetResolveError
impl Send for AssetResolveError
impl Sync for AssetResolveError
impl Unpin for AssetResolveError
impl !UnwindSafe for AssetResolveError
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