Enum rocket_contrib::helmet::XssFilter [−][src]
pub enum XssFilter { Disable, Enable, EnableBlock, EnableReport(Uri<'static>), }
Expand description
The X-XSS-Protection header: filters some forms of reflected XSS attacks.
Variants
Disables XSS filtering.
Enables XSS filtering. If XSS is detected, the browser will sanitize before rendering the page (SpaceHelmet default).
Enables XSS filtering. If XSS is detected, the browser will not render the page.
Enables XSS filtering. If XSS is detected, the browser will sanitize and
render the page and report the violation to the given Uri
. (Chromium
only)
Trait Implementations
impl Default for XssFilter
[src]
impl Default for XssFilter
[src]Defaults to XssFilter::Enable
.
Auto Trait Implementations
impl !RefUnwindSafe for XssFilter
impl Send for XssFilter
impl Sync for XssFilter
impl Unpin for XssFilter
impl UnwindSafe for XssFilter
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> IntoCollection<T> for T
impl<T> IntoCollection<T> for T
pub fn into_collection<A>(self) -> SmallVec<A> where
A: Array<Item = T>,
pub fn into_collection<A>(self) -> SmallVec<A> where
A: Array<Item = T>,
Converts self
into a collection.
pub fn mapped<U, F, A>(self, f: F) -> SmallVec<A> where
F: FnMut(T) -> U,
A: Array<Item = U>,
F: FnMut(T) -> U,
A: Array<Item = U>,
impl<T> IntoSql for T
[src]
impl<T> IntoSql for T
[src]fn into_sql<T>(self) -> Self::Expression where
Self: AsExpression<T>,
[src]
fn into_sql<T>(self) -> Self::Expression where
Self: AsExpression<T>,
[src]Convert self
to an expression for Diesel’s query builder. Read more
fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expression where
&'a Self: AsExpression<T>,
[src]
fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expression where
&'a Self: AsExpression<T>,
[src]Convert &self
to an expression for Diesel’s query builder. Read more
impl<T> Same<T> for T
impl<T> Same<T> for T
type Output = T
type Output = T
Should always be Self
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,