Enum pencil::PencilError
[−]
[src]
pub enum PencilError {
PenHTTPError(HTTPError),
PenUserError(UserError),
}The Pencil Error type.
Variants
PenHTTPError(HTTPError)PenUserError(UserError)Trait Implementations
impl Debug for PencilError[src]
impl Clone for PencilError[src]
fn clone(&self) -> PencilError
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0
Performs copy-assignment from source. Read more
impl From<HTTPError> for PencilError[src]
fn from(err: HTTPError) -> PencilError
Performs the conversion.
impl From<UserError> for PencilError[src]
fn from(err: UserError) -> PencilError
Performs the conversion.
impl Display for PencilError[src]
impl Error for PencilError[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.
impl From<RenderError> for PencilError[src]
fn from(err: RenderError) -> PencilError
Performs the conversion.
impl From<TemplateRenderError> for PencilError[src]
fn from(err: TemplateRenderError) -> PencilError
Performs the conversion.