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

Input/output error.

Data limit exceeded.

Malformed URI (no ID).

Unknown ID.

ID decoder error.

Tera rendering error.

URL parsing error.

We expect a ContentLength header for incoming requests.

Trait Implementations

impl Debug for Error
[src]

[src]

Formats the value using the given formatter. Read more

impl Display for Error

Formats the value using the given formatter. Read more

impl Error for Error

A short description of the error. Read more

The lower-level cause of this error, if any. Read more

impl From<Error> for Error

Performs the conversion.

impl From<DecodeError> for Error

Performs the conversion.

impl From<Error> for Error

Performs the conversion.

impl From<Error> for IronError
[src]

[src]

Performs the conversion.

Auto Trait Implementations

impl Send for Error

impl !Sync for Error