pub enum ImageLoadError {
Read(String),
Decode(String),
}Expand description
Why an image did not load.
Variants§
Read(String)
The image bytes could not be read from their source. The text describes the cause.
Decode(String)
The bytes were read but could not be decoded as an image. The text describes the cause.
Trait Implementations§
Source§impl Clone for ImageLoadError
impl Clone for ImageLoadError
Source§impl Debug for ImageLoadError
impl Debug for ImageLoadError
Source§impl Display for ImageLoadError
impl Display for ImageLoadError
impl Eq for ImageLoadError
Source§impl Error for ImageLoadError
impl Error for ImageLoadError
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 ImageLoadError
impl PartialEq for ImageLoadError
impl StructuralPartialEq for ImageLoadError
Auto Trait Implementations§
impl Freeze for ImageLoadError
impl RefUnwindSafe for ImageLoadError
impl Send for ImageLoadError
impl Sync for ImageLoadError
impl Unpin for ImageLoadError
impl UnsafeUnpin for ImageLoadError
impl UnwindSafe for ImageLoadError
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