pub struct CsrfCookie(/* private fields */);
Expand description
Extractor to get the CSRF cookie from the request.
Implementations§
Trait Implementations§
Source§impl AsRef<str> for CsrfCookie
impl AsRef<str> for CsrfCookie
Source§impl Clone for CsrfCookie
impl Clone for CsrfCookie
Source§fn clone(&self) -> CsrfCookie
fn clone(&self) -> CsrfCookie
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for CsrfCookie
impl Debug for CsrfCookie
Source§impl FromRequest for CsrfCookie
impl FromRequest for CsrfCookie
Source§type Future = Ready<Result<CsrfCookie, <CsrfCookie as FromRequest>::Error>>
type Future = Ready<Result<CsrfCookie, <CsrfCookie as FromRequest>::Error>>
Future that resolves to a Self.
Source§fn from_request(req: &HttpRequest, _payload: &mut Payload) -> Self::Future
fn from_request(req: &HttpRequest, _payload: &mut Payload) -> Self::Future
Create a Self from request parts asynchronously.
Source§impl Hash for CsrfCookie
impl Hash for CsrfCookie
Source§impl Ord for CsrfCookie
impl Ord for CsrfCookie
Source§fn cmp(&self, other: &CsrfCookie) -> Ordering
fn cmp(&self, other: &CsrfCookie) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for CsrfCookie
impl PartialEq for CsrfCookie
Source§impl PartialOrd for CsrfCookie
impl PartialOrd for CsrfCookie
impl Eq for CsrfCookie
impl StructuralPartialEq for CsrfCookie
Auto Trait Implementations§
impl Freeze for CsrfCookie
impl RefUnwindSafe for CsrfCookie
impl Send for CsrfCookie
impl Sync for CsrfCookie
impl Unpin for CsrfCookie
impl UnwindSafe for CsrfCookie
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
Source§impl<T> CallHasher for T
impl<T> CallHasher for T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.