Enum rocket_contrib::helmet::NoSniff
source · pub enum NoSniff {
Enable,
}
Expand description
The X-Content-Type-Options header: turns off mime sniffing which can prevent certain attacks.
Variants§
Enable
Turns off mime sniffing.
Trait Implementations§
source§impl Default for NoSniff
impl Default for NoSniff
Defaults to NoSniff::Enable
, turns off mime sniffing.
Auto Trait Implementations§
impl Freeze for NoSniff
impl RefUnwindSafe for NoSniff
impl Send for NoSniff
impl Sync for NoSniff
impl Unpin for NoSniff
impl UnwindSafe for NoSniff
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> IntoCollection<T> for T
impl<T> IntoCollection<T> for T
source§impl<T> IntoSql for T
impl<T> IntoSql for T
source§fn into_sql<T>(self) -> Self::Expressionwhere
Self: Sized + AsExpression<T>,
fn into_sql<T>(self) -> Self::Expressionwhere
Self: Sized + AsExpression<T>,
Convert
self
to an expression for Diesel’s query builder. Read moresource§fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expressionwhere
&'a Self: AsExpression<T>,
fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expressionwhere
&'a Self: AsExpression<T>,
Convert
&self
to an expression for Diesel’s query builder. Read more