pub struct CsrfService { /* private fields */ }Expand description
HMAC-backed CSRF token issuer and verifier.
Production applications must inject the same secret into every application instance and rotate it independently from session records. The token is suitable for a signed double-submit cookie flow when the cookie and request header values are compared by the HTTP adapter.
Implementations§
Trait Implementations§
Source§impl Clone for CsrfService
impl Clone for CsrfService
Source§fn clone(&self) -> CsrfService
fn clone(&self) -> CsrfService
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for CsrfService
impl RefUnwindSafe for CsrfService
impl Send for CsrfService
impl Sync for CsrfService
impl Unpin for CsrfService
impl UnsafeUnpin for CsrfService
impl UnwindSafe for CsrfService
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