pub enum SessionCookieCommand {
Set {
cookie_value: String,
expiry: SessionExpiry,
},
Delete,
DoNothing,
}
Expand description
Indicates if the client’s session cookie should be updated.
Annotated with #[must_use]
, because silently dropping this
very likely indicates that the communication of the session to the client was forgotten about.
Variants§
Set
Set or update the session cookie.
Delete
Delete the session cookie.
DoNothing
Do not inform the client about any updates to the session cookie. This means that the cookie stayed the same.
Trait Implementations§
Source§impl Debug for SessionCookieCommand
impl Debug for SessionCookieCommand
Source§impl PartialEq for SessionCookieCommand
impl PartialEq for SessionCookieCommand
impl Eq for SessionCookieCommand
impl StructuralPartialEq for SessionCookieCommand
Auto Trait Implementations§
impl Freeze for SessionCookieCommand
impl RefUnwindSafe for SessionCookieCommand
impl Send for SessionCookieCommand
impl Sync for SessionCookieCommand
impl Unpin for SessionCookieCommand
impl UnwindSafe for SessionCookieCommand
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