pub fn tap<T: DeserializeOwned>(
        &self,
        func: impl FnOnce(&mut SQLxSessionData) -> Option<T>,
    ) -> Option<T> {
        let store_rg = self.store.inner.read();

        let mut instance = store_rg
            .get(&self.id.0.to_string())
            .expect("Session data unexpectedly missing")
            .lock();

        func(&mut instance)
    }
///Runs a Closure that can return Data from the users SessionData Hashmap.
Runs a Closure that can return Data from the users SessionData Hashmap.
Runs a Closure that can return Data from the users SessionData Hashmap .
pub fn tap<T: DeserializeOwned>(
        &self,
        func: impl FnOnce(&mut SQLxSessionData) -> Option<T>,
    ) -> Option<T> {
        let store_rg = self.store.inner.read();
        let mut instance = store_rg
            .get(&self.id.0.to_string())
            .expect("Session data unexpectedly missing")
            .lock();
        func(&mut instance)
    }
pub fn tap < T : DeserializeOwned > ( & self , func : impl FnOnce ( & mut SQLxSessionData ) -> Option < T > , ) -> Option < T > { let store_rg = self . store . inner . read ( ) ; let mut instance = store_rg . get ( & self . id . 0 . to_string ( ) ) . expect ( " " ) . lock ( ) ; func ( & mut instance ) }
Runs a Closure that can return Data from the users SessionData Hashmap.
Runs a Closure that can return Data from the users SessionData Hashmap .
&self
func
impl FnOnce(&mut SQLxSessionData) -> Option<T>
&self
func
impl FnOnce(&mut SQLxSessionData) -> Option<T>