[][src]Struct iron_csrf::CsrfProtectionMiddleware

pub struct CsrfProtectionMiddleware<P: CsrfProtection> { /* fields omitted */ }

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

impl<P> Send for CsrfProtectionMiddleware<P>

impl<P> Sync for CsrfProtectionMiddleware<P>

impl<P> Unpin for CsrfProtectionMiddleware<P> where
    P: Unpin

impl<P> UnwindSafe for CsrfProtectionMiddleware<P> where
    P: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<F> AroundMiddleware for F where
    F: FnOnce(Box<dyn Handler + 'static>) -> Box<dyn Handler + 'static>, 
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> PersistentInto<Arc<Mutex<T>>> for T

impl<T> PersistentInto<Arc<RwLock<T>>> for T

impl<T> PersistentInto<Arc<T>> for T

impl<T> PersistentInto<T> for T

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> Sealed<T> for T where
    T: ?Sized

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Typeable for T where
    T: Any

impl<T> UnsafeAny for T where
    T: Any

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,