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

pub enum GetImageDataError {
    IndexSizeError(IndexSizeError),
    SecurityError(SecurityError),
}

A enum of the exceptions that CanvasRenderingContext2D.get_image_data() may throw

Variants

An IndexSizeError if thw width or height is 0

A SecurityError

Trait Implementations

impl Debug for GetImageDataError
[src]

[src]

Formats the value using the given formatter. Read more

impl Clone for GetImageDataError
[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 GetImageDataError
[src]

The type returned in the event of a conversion error.

[src]

Performs the conversion.

impl Display for GetImageDataError
[src]

[src]

Formats the value using the given formatter. Read more

impl Error for GetImageDataError
[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