pub enum AssetError {
ChecksumMismatch {
name: String,
expected: String,
actual: String,
},
Download(String),
Io(Error),
}Expand description
Errors that can occur during asset download, verification, or caching.
Variants§
ChecksumMismatch
SHA-256 checksum mismatch after download.
Download(String)
HTTP or network-level download failure.
Io(Error)
Filesystem I/O error.
Trait Implementations§
Source§impl Debug for AssetError
impl Debug for AssetError
Source§impl Display for AssetError
impl Display for AssetError
Source§impl Error for AssetError
impl Error for AssetError
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 !RefUnwindSafe for AssetError
impl !UnwindSafe for AssetError
impl Freeze for AssetError
impl Send for AssetError
impl Sync for AssetError
impl Unpin for AssetError
impl UnsafeUnpin 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