Enum iron_dsc_csrf::CsrfError [] [src]

pub enum CsrfError {
    TokenMissing,
    TokenInvalid,
    CookieMissing,
    NoRandom(Error),
}

The type of Errors used in this middleware.

Used to convey extra information inside an iron::IronError

Variants

No token was provided with the request

A token was provided, but it didn't match the cookie

No cookie was provided with the request

An error was encountered while generating a random token

Trait Implementations

impl Debug for CsrfError
[src]

[src]

Formats the value using the given formatter.

impl Error for CsrfError
[src]

[src]

A short description of the error. Read more

[src]

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

impl Display for CsrfError
[src]

[src]

Formats the value using the given formatter. Read more