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

NoRouteFound

Couldn't find a way to handle this request.

WrongInput

The user input is wrong.

LoginRequired

The user must be logged in.

WrongLoginPassword

The user entered a wrong login or password.

NotAuthorized

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

Trait Implementations

impl From<PostError> for RouteError
[src]

fn from(err: PostError) -> RouteError

Performs the conversion.

impl Eq for RouteError
[src]

impl PartialEq for RouteError
[src]

fn eq(&self, __arg_0: &RouteError) -> bool

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

fn ne(&self, other: &Rhs) -> bool
1.0.0

This method tests for !=.

impl Debug for RouteError
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.

impl Clone for RouteError
[src]

fn clone(&self) -> RouteError

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 Error for RouteError
[src]

fn description(&self) -> &str

A short description of the error. Read more

fn cause(&self) -> Option<&Error>
1.0.0

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

impl Display for RouteError
[src]

fn fmt(&self, fmt: &mut Formatter) -> Result<()Error>

Formats the value using the given formatter.