Enum actix_cloud::session::config::CookieContentSecurity
source · pub enum CookieContentSecurity {
Private,
Signed,
}Available on crate feature
session only.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 Freeze for CookieContentSecurity
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)