Enum poem::session::SessionStatus
source · [−]pub enum SessionStatus {
Changed,
Purged,
Renewed,
Unchanged,
}
Available on crate feature
session
only.Expand description
Status of the Session.
Variants
Changed
Indicates that the session state has changed.
Purged
Indicates that the session state needs to be cleared.
Renewed
Indicates that the session TTL(time-to-live) needs to be reset.
Unchanged
Indicates that the session state is unchanged.
Trait Implementations
sourceimpl Clone for SessionStatus
impl Clone for SessionStatus
sourcefn clone(&self) -> SessionStatus
fn clone(&self) -> SessionStatus
Returns a copy of the value. Read more
1.0.0 · sourceconst fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for SessionStatus
impl Debug for SessionStatus
sourceimpl PartialEq<SessionStatus> for SessionStatus
impl PartialEq<SessionStatus> for SessionStatus
sourcefn eq(&self, other: &SessionStatus) -> bool
fn eq(&self, other: &SessionStatus) -> bool
impl Copy for SessionStatus
impl Eq for SessionStatus
impl StructuralEq for SessionStatus
impl StructuralPartialEq for SessionStatus
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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.