Enum rofl::TemplateError
[−]
[src]
pub enum TemplateError {
File(Error),
OpenImage(ImageError),
DecodeAnimatedGif(DecodeError),
}Error that may occur during template load.
Variants
File(Error)Error while loading the template file.
OpenImage(ImageError)Error when opening a template image didn't succeed.
DecodeAnimatedGif(DecodeError)Error when opening a template's animated GIF didn't succeed.
Trait Implementations
impl Debug for TemplateError[src]
impl Display for TemplateError[src]
impl Error for TemplateError[src]
fn description(&self) -> &str
A short description of the error. Read more
fn cause(&self) -> Option<&Error>
The lower-level cause of this error, if any. Read more
impl From<Error> for TemplateError[src]
fn from(err: Error) -> TemplateError
Performs the conversion.
impl From<ImageError> for TemplateError[src]
fn from(err: ImageError) -> TemplateError
Performs the conversion.
impl From<DecodeError> for TemplateError[src]
fn from(err: DecodeError) -> TemplateError
Performs the conversion.