#[non_exhaustive]pub enum AssetError {
InvalidPath,
NotFound,
}Expand description
Error returned by get when an asset path cannot be served.
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.
InvalidPath
The path is not a valid /sf-relative asset path.
NotFound
The path is valid but no embedded asset exists at that location.
Trait Implementations§
Source§impl Clone for AssetError
impl Clone for AssetError
Source§fn clone(&self) -> AssetError
fn clone(&self) -> AssetError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for AssetError
Source§impl Debug for AssetError
impl Debug for AssetError
Source§impl Display for AssetError
impl Display for AssetError
impl Eq for AssetError
Source§impl Error for AssetError
impl Error for AssetError
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()
Source§impl PartialEq for AssetError
impl PartialEq for AssetError
Source§fn eq(&self, other: &AssetError) -> bool
fn eq(&self, other: &AssetError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for AssetError
Auto Trait Implementations§
impl Freeze for AssetError
impl RefUnwindSafe for AssetError
impl Send for AssetError
impl Sync for AssetError
impl Unpin for AssetError
impl UnsafeUnpin for AssetError
impl UnwindSafe for AssetError
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