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
IndexSizeError(IndexSizeError)An IndexSizeError if thw width or height is 0
SecurityError(SecurityError)A SecurityError
Trait Implementations
impl Debug for GetImageDataError[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result[src]
Formats the value using the given formatter. Read more
impl Clone for GetImageDataError[src]
fn clone(&self) -> GetImageDataError[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
Performs copy-assignment from source. Read more
impl TryFrom<Value> for GetImageDataError[src]
type Error = ConversionError
The type returned in the event of a conversion error.
fn try_from(value: Value) -> Result<Self, Self::Error>[src]
Performs the conversion.
impl Display for GetImageDataError[src]
fn fmt(&self, formatter: &mut Formatter) -> Result[src]
Formats the value using the given formatter. Read more