pub enum CookieContentSecurity {
Private,
Signed,
}
Expand description
Determines how to secure the content of the session cookie.
Variants§
Private
The cookie content is encrypted when using CookieContentSecurity::Private
.
Encryption guarantees confidentiality and integrity: the client cannot tamper with the cookie content nor decode it, as long as the encryption key remains confidential.
Signed
The cookie content is signed when using CookieContentSecurity::Signed
.
Signing guarantees integrity, but it doesn’t ensure confidentiality: the client cannot tamper with the cookie content, but they can read it.
Trait Implementations§
source§impl Clone for CookieContentSecurity
impl Clone for CookieContentSecurity
source§fn clone(&self) -> CookieContentSecurity
fn clone(&self) -> CookieContentSecurity
Returns a copy 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 CookieContentSecurity
impl Debug for CookieContentSecurity
impl Copy for CookieContentSecurity
Auto Trait Implementations§
impl RefUnwindSafe for CookieContentSecurity
impl Send for CookieContentSecurity
impl Sync for CookieContentSecurity
impl Unpin for CookieContentSecurity
impl UnwindSafe for CookieContentSecurity
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