Enum actix_session::SessionStatus
source · [−]pub enum SessionStatus {
Changed,
Purged,
Renewed,
Unchanged,
}
Expand description
Status of a Session
.
Variants
Changed
Session has been updated and requires a new persist operation.
Purged
Session is flagged for deletion and should be removed from client and server.
Most operations on the session after purge flag is set should have no effect.
Renewed
Session is flagged for refresh.
For example, when using a backend that has a TTL (time-to-live) expiry on the session entry, the session will be refreshed even if no data inside it has changed. The client may also be notified of the refresh.
Unchanged
Session is unchanged from when last seen (if exists).
This state also captures new (previously unissued) sessions such as a user’s first site visit.
Trait Implementations
Returns the “default value” for a type. Read more
Auto Trait Implementations
impl RefUnwindSafe for SessionStatus
impl Send for SessionStatus
impl Sync for SessionStatus
impl Unpin for SessionStatus
impl UnwindSafe for SessionStatus
Blanket Implementations
Mutably borrows from an owned value. Read more
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more