pub enum PencilError {
PenHTTPError(HTTPError),
PenUserError(UserError),
}Expand description
The Pencil Error type.
Variants§
Trait Implementations§
Source§impl Clone for PencilError
impl Clone for PencilError
Source§fn clone(&self) -> PencilError
fn clone(&self) -> PencilError
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PencilError
impl Debug for PencilError
Source§impl Display for PencilError
impl Display for PencilError
Source§impl Error for PencilError
impl Error for PencilError
Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§fn cause(&self) -> Option<&dyn Error>
fn cause(&self) -> Option<&dyn Error>
👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
Source§impl From<HTTPError> for PencilError
impl From<HTTPError> for PencilError
Source§fn from(err: HTTPError) -> PencilError
fn from(err: HTTPError) -> PencilError
Converts to this type from the input type.
Source§impl From<RenderError> for PencilError
impl From<RenderError> for PencilError
Source§fn from(err: RenderError) -> PencilError
fn from(err: RenderError) -> PencilError
Converts to this type from the input type.
Source§impl From<TemplateRenderError> for PencilError
impl From<TemplateRenderError> for PencilError
Source§fn from(err: TemplateRenderError) -> PencilError
fn from(err: TemplateRenderError) -> PencilError
Converts to this type from the input type.
Source§impl From<UserError> for PencilError
impl From<UserError> for PencilError
Source§fn from(err: UserError) -> PencilError
fn from(err: UserError) -> PencilError
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for PencilError
impl RefUnwindSafe for PencilError
impl Send for PencilError
impl Sync for PencilError
impl Unpin for PencilError
impl UnwindSafe for PencilError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more