pub trait AbstractSessionManager: Sync + Send {
// Required methods
fn set(
&self,
session_id: &String,
name: &str,
value: &str,
) -> SessionResult<Result<()>>;
fn get(
&self,
session_id: &String,
name: &str,
) -> SessionResult<Option<String>>;
fn remove(
&self,
session_id: &String,
name: &str,
) -> SessionResult<Result<()>>;
fn destroy(&self, session_id: &String) -> SessionResult<Result<()>>;
}Required Methods§
Sourcefn set(
&self,
session_id: &String,
name: &str,
value: &str,
) -> SessionResult<Result<()>>
fn set( &self, session_id: &String, name: &str, value: &str, ) -> SessionResult<Result<()>>
Set or update session value of the client.
Sourcefn get(&self, session_id: &String, name: &str) -> SessionResult<Option<String>>
fn get(&self, session_id: &String, name: &str) -> SessionResult<Option<String>>
Returns session value of the client.