pub trait SessionStore<P>: Send + Syncwhere
P: Send,{
// Required methods
fn load<'a>(
&'a self,
id: &'a SessionId,
) -> BoxFuture<'a, SoapResult<Option<Session<P>>>>;
fn save(&self, session: Session<P>) -> BoxFuture<'_, SoapResult<()>>;
fn delete<'a>(&'a self, id: &'a SessionId) -> BoxFuture<'a, SoapResult<()>>;
}Expand description
Persistence port for server-side sessions.
Required Methods§
Sourcefn load<'a>(
&'a self,
id: &'a SessionId,
) -> BoxFuture<'a, SoapResult<Option<Session<P>>>>
fn load<'a>( &'a self, id: &'a SessionId, ) -> BoxFuture<'a, SoapResult<Option<Session<P>>>>
Loads a session when it exists.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".