Enum actix_web::middleware::csrf::CsrfError
source · pub enum CsrfError {
MissingOrigin,
BadOrigin,
CsrDenied,
}
Expand description
Potential cross-site request forgery detected.
Variants
MissingOrigin
The HTTP request header Origin
was required but not provided.
BadOrigin
The HTTP request header Origin
could not be parsed correctly.
CsrDenied
The cross-site request was denied.
Trait Implementations
sourceimpl Fail for CsrfError
impl Fail for CsrfError
sourcefn cause(&self) -> Option<&dyn Fail>
fn cause(&self) -> Option<&dyn Fail>
Returns a reference to the underlying cause of this failure, if it
is an error that wraps other errors. Read more
sourcefn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
Returns a reference to the
Backtrace
carried by this failure, if it
carries one. Read moresourceimpl ResponseError for CsrfError
impl ResponseError for CsrfError
sourcefn error_response(&self) -> HttpResponse
fn error_response(&self) -> HttpResponse
Create response for error Read more
Auto Trait Implementations
impl RefUnwindSafe for CsrfError
impl Send for CsrfError
impl Sync for CsrfError
impl Unpin for CsrfError
impl UnwindSafe for CsrfError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more