Enum bottomless_pit::engine_handle::IconError
source · pub enum IconError {
BadIcon(BadIcon),
IconLoadingError(ImageError),
}Expand description
Errors that can occur when setting the window Icon.
Variants§
BadIcon(BadIcon)
Occurs because the image does not meet certain requirments please see winit docs.
IconLoadingError(ImageError)
The image file was not a valid image
Trait Implementations§
source§impl Error for IconError
impl Error for IconError
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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<ImageError> for IconError
impl From<ImageError> for IconError
source§fn from(value: ImageError) -> Self
fn from(value: ImageError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for IconError
impl Send for IconError
impl Sync for IconError
impl Unpin for IconError
impl !UnwindSafe for IconError
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