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

fn from(err: PostError) -> RouteError

impl Error for RouteError

fn description(&self) -> &str

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

impl Display for RouteError

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

Derived Implementations

impl Eq for RouteError

impl PartialEq for RouteError

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

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

impl Debug for RouteError

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

impl Clone for RouteError

fn clone(&self) -> RouteError

fn clone_from(&mut self, source: &Self)