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

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

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

An InvalidStateError if the image has no image data

A NotSupportedError

A TypeError if the specified source element isn't supported

Trait Implementations

impl Debug for DrawImageError
[src]

[src]

Formats the value using the given formatter. Read more

impl Clone for DrawImageError
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl TryFrom<Value> for DrawImageError
[src]

The type returned in the event of a conversion error.

[src]

Performs the conversion.

impl Display for DrawImageError
[src]

[src]

Formats the value using the given formatter. Read more

impl Error for DrawImageError
[src]

[src]

A short description of the error. Read more

1.0.0
[src]

The lower-level cause of this error, if any. Read more

Auto Trait Implementations