Enum prompto::PromptoError [] [src]

pub enum PromptoError {
    ImageError {
        cause: ImageError,
    },
    IoError {
        cause: Error,
    },
    MaskingError,
    NotRgba,
}

Library errors.

Variants

Failure to process an image.

Fields of ImageError

Source of the error.

Failure to load an image.

Fields of IoError

Source of the error.

Problem encountered when adding the image mask.

Image is not an RGB image with an alpha channel.

Trait Implementations

impl Debug for PromptoError
[src]

Formats the value using the given formatter.

impl From<ImageError> for PromptoError
[src]

Performs the conversion.