[][src]Enum stdweb::web::error::DrawImageError

pub enum DrawImageError {
    IndexSizeError(IndexSizeError),
    InvalidStateError(InvalidStateError),
    NotSupportedError(NotSupportedError),
    TypeError(TypeError),
}

A enum of the exceptions that CanvasRenderingContext2D.draw_image() and similar may throw

Variants

IndexSizeError(IndexSizeError)

An IndexSizeError if the source or destination rectangle has an width or height of 0

InvalidStateError(InvalidStateError)

An InvalidStateError if the image has no image data

NotSupportedError(NotSupportedError)

A NotSupportedError

TypeError(TypeError)

A TypeError if the specified source element isn't supported

Trait Implementations

impl JsSerialize for DrawImageError[src]

impl TryFrom<Value> for DrawImageError[src]

type Error = ConversionError

The type returned in the event of a conversion error.

impl Clone for DrawImageError[src]

impl Display for DrawImageError[src]

impl Debug for DrawImageError[src]

impl Error for DrawImageError[src]

Auto Trait Implementations

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]