Enum AssetLookupError
pub enum AssetLookupError {
InvalidPath {
path: String,
},
Missing {
path: String,
},
InvalidUtf8 {
path: String,
error: Utf8Error,
},
WrongLength {
path: String,
expected: usize,
actual: usize,
},
}Expand description
A checked lookup failure, with the requested path or canonical asset name.
Variants§
Trait Implementations§
§impl Clone for AssetLookupError
impl Clone for AssetLookupError
§fn clone(&self) -> AssetLookupError
fn clone(&self) -> AssetLookupError
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read more§impl Debug for AssetLookupError
impl Debug for AssetLookupError
§impl Display for AssetLookupError
impl Display for AssetLookupError
§impl Error for AssetLookupError
impl Error for AssetLookupError
§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()
§impl PartialEq for AssetLookupError
impl PartialEq for AssetLookupError
impl Eq for AssetLookupError
impl StructuralPartialEq for AssetLookupError
Auto Trait Implementations§
impl Freeze for AssetLookupError
impl RefUnwindSafe for AssetLookupError
impl Send for AssetLookupError
impl Sync for AssetLookupError
impl Unpin for AssetLookupError
impl UnwindSafe for AssetLookupError
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