pub struct SessionRecord {
pub sessions: HashMap<String, SessionEntry>,
pub version: String,
}Fields§
§sessions: HashMap<String, SessionEntry>§version: StringImplementations§
Source§impl SessionRecord
impl SessionRecord
pub fn new() -> Self
pub fn create_entry() -> SessionEntry
pub fn have_open_session(&self) -> bool
pub fn get_session(&self, key: &[u8]) -> Option<&SessionEntry>
pub fn get_open_session(&self) -> Option<&SessionEntry>
pub fn set_session(&mut self, session: SessionEntry)
pub fn get_sessions(&self) -> Vec<&SessionEntry>
pub fn close_session(&mut self, session_key: &[u8])
pub fn open_session(&mut self, session_key: &[u8])
pub fn is_closed(&self, session: &SessionEntry) -> bool
pub fn remove_old_sessions(&mut self)
pub fn delete_all_sessions(&mut self)
Trait Implementations§
Source§impl Clone for SessionRecord
impl Clone for SessionRecord
Source§fn clone(&self) -> SessionRecord
fn clone(&self) -> SessionRecord
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for SessionRecord
impl RefUnwindSafe for SessionRecord
impl Send for SessionRecord
impl Sync for SessionRecord
impl Unpin for SessionRecord
impl UnwindSafe for SessionRecord
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