Enum pastebin::Error
[−]
pub enum Error { Io(Error), TooBig, NoIdSegment, IdNotFound(u64), IdDecode(DecodeError), Tera(Error), Url(String), NoContentLength, }
Container for errors that might happen during processing requests.
Variants
Io(Error)
Input/output error.
TooBig
Data limit exceeded.
NoIdSegment
Malformed URI (no ID).
IdNotFound(u64)
Unknown ID.
IdDecode(DecodeError)
ID decoder error.
Tera(Error)
Tera rendering error.
Url(String)
URL parsing error.
NoContentLength
We expect a ContentLength
header for incoming requests.
Trait Implementations
impl Debug for Error
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl Display for Error
impl Error for Error
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 Error
impl From<DecodeError> for Error
fn from(err: DecodeError) -> Error
Performs the conversion.