Enum fe_session::FeSessionState [] [src]

pub enum FeSessionState {
    Active,
    Expired,
    None,
}

Enumeration to identify the state of a user's session.

Variants

Active

The session exists and is active.

Expired

There is no session, however the client provided a session cookie. So the session must have expired.

None

There is no session and the client did not provide a session cookie.

Methods

impl FeSessionState

fn is_active(&self) -> bool

Helper method to check if the session is active.

fn is_expired(&self) -> bool

Helper method to check if the session is expired.

fn is_none(&self) -> bool

Helper method to check if the session doesn't exist.

Trait Implementations

Derived Implementations

impl Clone for FeSessionState

fn clone(&self) -> FeSessionState

1.0.0fn clone_from(&mut self, source: &Self)

impl Copy for FeSessionState

impl Debug for FeSessionState

fn fmt(&self, __arg_0: &mut Formatter) -> Result