Enum rouille::RouteError [] [src]

pub enum RouteError {
    NoRouteFound,
    WrongInput,
    LoginRequired,
    WrongLoginPassword,
    NotAuthorized,
}

An error that one of your routes can return.

This is just a convenience enum and you don't need to use it in your project if you don't want to.

Variants

Couldn't find a way to handle this request.

The user input is wrong.

The user must be logged in.

The user entered a wrong login or password.

The user is logged in but shouldn't be there.

Trait Implementations

impl From<MultipartError> for RouteError
[src]

Performs the conversion.

impl From<PostError> for RouteError
[src]

Performs the conversion.

impl Clone for RouteError
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for RouteError
[src]

Formats the value using the given formatter.

impl PartialEq for RouteError
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Eq for RouteError
[src]

impl Error for RouteError
[src]

A short description of the error. Read more

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

impl Display for RouteError
[src]

Formats the value using the given formatter.