pub enum WebImageError {
ConversionError,
ImageError(ImageError),
DomError,
JsError {
inner: JsValue,
},
}Variants§
Trait Implementations§
Source§impl Debug for WebImageError
impl Debug for WebImageError
Source§impl Display for WebImageError
impl Display for WebImageError
Source§impl Error for WebImageError
impl Error for WebImageError
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 From<ImageError> for WebImageError
impl From<ImageError> for WebImageError
Source§fn from(source: ImageError) -> Self
fn from(source: ImageError) -> Self
Converts to this type from the input type.
Source§impl From<JsValue> for WebImageError
impl From<JsValue> for WebImageError
Source§impl From<WebImageError> for JsValue
impl From<WebImageError> for JsValue
Source§fn from(value: WebImageError) -> Self
fn from(value: WebImageError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for WebImageError
impl !RefUnwindSafe for WebImageError
impl !Send for WebImageError
impl !Sync for WebImageError
impl Unpin for WebImageError
impl !UnwindSafe for WebImageError
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