pub struct MemorySessionIndex { /* private fields */ }Expand description
Which local sessions belong to which person.
Implementations§
Source§impl MemorySessionIndex
impl MemorySessionIndex
pub fn new(max_entries: usize) -> Self
pub fn add(&self, session: SessionRecord)
pub fn remove(&self, local_id: &str)
pub fn by_person(&self, person: &str) -> Vec<String>
pub fn by_email(&self, email: &str) -> Vec<String>
pub fn by_idp_session(&self, idp_session: &str) -> Vec<String>
Auto Trait Implementations§
impl !Freeze for MemorySessionIndex
impl Forget for MemorySessionIndex
impl RefUnwindSafe for MemorySessionIndex
impl Send for MemorySessionIndex
impl Sync for MemorySessionIndex
impl Unpin for MemorySessionIndex
impl UnsafeUnpin for MemorySessionIndex
impl UnwindSafe for MemorySessionIndex
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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