Enum actix_session::SessionStatus[][src]

pub enum SessionStatus {
    Changed,
    Purged,
    Renewed,
    Unchanged,
}

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

impl Clone for SessionStatus[src]

impl Debug for SessionStatus[src]

impl Default for SessionStatus[src]

impl PartialEq<SessionStatus> for SessionStatus[src]

impl StructuralPartialEq for SessionStatus[src]

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

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,