Trait SessionHost
Source pub trait SessionHost: Send + Sync {
// Required methods
fn get<'life0, 'life1, 'async_trait>(
&'life0 self,
key: &'life1 SessionKey,
) -> Pin<Box<dyn Future<Output = GResult<Option<SessionSnapshot>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn put<'life0, 'async_trait>(
&'life0 self,
snapshot: SessionSnapshot,
) -> Pin<Box<dyn Future<Output = GResult<()>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn update_cas<'life0, 'async_trait>(
&'life0 self,
snapshot: SessionSnapshot,
expected_revision: u64,
) -> Pin<Box<dyn Future<Output = GResult<bool>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn delete<'life0, 'life1, 'async_trait>(
&'life0 self,
key: &'life1 SessionKey,
) -> Pin<Box<dyn Future<Output = GResult<()>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn touch<'life0, 'life1, 'async_trait>(
&'life0 self,
key: &'life1 SessionKey,
ttl: Duration,
) -> Pin<Box<dyn Future<Output = GResult<()>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
}