[−][src]Struct iron_csrf::CsrfProtectionMiddleware
An implementation of iron::AroundMiddleware
that provides transparent wrapping of an
application with CSRF protection.
Implementations
impl<P: CsrfProtection> CsrfProtectionMiddleware<P>
[src]
pub fn new(protect: P, config: CsrfConfig) -> Self
[src]
Create a new instance of CsrfProtectionMiddleware
from a CsrfProtection
and
CsrfConfig
.
Trait Implementations
impl<P: CsrfProtection + 'static> AroundMiddleware for CsrfProtectionMiddleware<P>
[src]
Auto Trait Implementations
impl<P> RefUnwindSafe for CsrfProtectionMiddleware<P> where
P: RefUnwindSafe,
P: RefUnwindSafe,
impl<P> Send for CsrfProtectionMiddleware<P>
impl<P> Sync for CsrfProtectionMiddleware<P>
impl<P> Unpin for CsrfProtectionMiddleware<P> where
P: Unpin,
P: Unpin,
impl<P> UnwindSafe for CsrfProtectionMiddleware<P> where
P: UnwindSafe,
P: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<F> AroundMiddleware for F where
F: FnOnce(Box<dyn Handler + 'static>) -> Box<dyn Handler + 'static>,
[src]
F: FnOnce(Box<dyn Handler + 'static>) -> Box<dyn Handler + 'static>,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> PersistentInto<Arc<Mutex<T>>> for T
fn persistent_into(self) -> Arc<Mutex<T>>
impl<T> PersistentInto<Arc<RwLock<T>>> for T
fn persistent_into(self) -> Arc<RwLock<T>>
impl<T> PersistentInto<Arc<T>> for T
fn persistent_into(self) -> Arc<T>
impl<T> PersistentInto<T> for T
fn persistent_into(self) -> T
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> Sealed<T> for T where
T: ?Sized,
T: ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Typeable for T where
T: Any,
T: Any,
impl<T> UnsafeAny for T where
T: Any,
T: Any,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,