Struct tower_cookies::SignedCookies
source · pub struct SignedCookies<'a> { /* private fields */ }
Expand description
A child cookie jar that authenticates its cookies.
It signs all the cookies added to it and verifies cookies retrieved from it.
Any cookies stored in SignedCookies
are provided integrity and authenticity. In other
words, clients cannot tamper with the contents of a cookie nor can they fabricate cookie
values, but the data is visible in plaintext.
Implementations§
source§impl<'a> SignedCookies<'a>
impl<'a> SignedCookies<'a>
sourcepub fn add(&self, cookie: Cookie<'static>)
pub fn add(&self, cookie: Cookie<'static>)
Adds cookie to the parent jar. The cookie’s value is signed assuring integrity and authenticity.
Auto Trait Implementations§
impl<'a> Freeze for SignedCookies<'a>
impl<'a> !RefUnwindSafe for SignedCookies<'a>
impl<'a> Send for SignedCookies<'a>
impl<'a> Sync for SignedCookies<'a>
impl<'a> Unpin for SignedCookies<'a>
impl<'a> !UnwindSafe for SignedCookies<'a>
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