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
TokenMissing
No token was provided with the request
TokenInvalid
A token was provided, but it didn't match the cookie
CookieMissing
No cookie was provided with the request
NoRandom(Error)
An error was encountered while generating a random token
Trait Implementations
impl Debug for CsrfError
[src]
impl Error for CsrfError
[src]
fn description(&self) -> &str
[src]
A short description of the error. Read more
fn cause(&self) -> Option<&Error>
[src]
The lower-level cause of this error, if any. Read more