pub struct SessionFamilyId(/* private fields */);Expand description
Unique identifier for a session family.
A session family groups related sessions so higher-level logic can revoke them together when replay or broader logout behavior requires it.
§Examples
use webgates_sessions::session::SessionFamilyId;
let family_id = SessionFamilyId::new();
let uuid = family_id.into_uuid();
let restored = SessionFamilyId::from_uuid(uuid);
assert_eq!(restored.into_uuid(), uuid);Implementations§
Trait Implementations§
Source§impl Clone for SessionFamilyId
impl Clone for SessionFamilyId
Source§fn clone(&self) -> SessionFamilyId
fn clone(&self) -> SessionFamilyId
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SessionFamilyId
impl Debug for SessionFamilyId
Source§impl Default for SessionFamilyId
impl Default for SessionFamilyId
Source§impl Hash for SessionFamilyId
impl Hash for SessionFamilyId
Source§impl PartialEq for SessionFamilyId
impl PartialEq for SessionFamilyId
Source§fn eq(&self, other: &SessionFamilyId) -> bool
fn eq(&self, other: &SessionFamilyId) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for SessionFamilyId
impl Eq for SessionFamilyId
impl StructuralPartialEq for SessionFamilyId
Auto Trait Implementations§
impl Freeze for SessionFamilyId
impl RefUnwindSafe for SessionFamilyId
impl Send for SessionFamilyId
impl Sync for SessionFamilyId
impl Unpin for SessionFamilyId
impl UnsafeUnpin for SessionFamilyId
impl UnwindSafe for SessionFamilyId
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