Enum rofl::CaptionError
[−]
[src]
pub enum CaptionError<Tl = TemplateLoader, Fl = FontLoader> where
Tl: Loader<Item = Template>,
Fl: Loader<Item = Font>, { Template(String, Tl::Err), Font(String, Fl::Err), Encode(Error), }
Error that may occur during the captioning.
Variants
Template(String, Tl::Err)
Error while loading the template.
Font(String, Fl::Err)
Error while loading the font.
Encode(Error)
Error while encoding the final image macro.
Trait Implementations
impl<Tl, Fl> Error for CaptionError<Tl, Fl> where
Tl: Loader<Item = Template>,
Fl: Loader<Item = Font>,
[src]
Tl: Loader<Item = Template>,
Fl: Loader<Item = Font>,
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<Tl, Fl> Debug for CaptionError<Tl, Fl> where
Tl: Loader<Item = Template>,
Fl: Loader<Item = Font>,
[src]
Tl: Loader<Item = Template>,
Fl: Loader<Item = Font>,
impl<Tl, Fl> Display for CaptionError<Tl, Fl> where
Tl: Loader<Item = Template>,
Fl: Loader<Item = Font>,
[src]
Tl: Loader<Item = Template>,
Fl: Loader<Item = Font>,