Trait UserSession
Source pub trait UserSession {
type User;
// Required methods
fn set_user<'life0, 'async_trait>(
&'life0 self,
user: Self::User,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn unset_user<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn current_user<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Option<Self::User>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}