pub struct SessionService { /* private fields */ }Implementations§
Source§impl SessionService
impl SessionService
pub fn new(store: Arc<dyn SessionStore>) -> Self
pub async fn issue( &self, command: CreateSession, ) -> Result<IssuedSession, SessionError>
pub async fn resolve( &self, token: &SessionToken, ) -> Result<SessionRecord, SessionError>
pub async fn revoke(&self, id: SessionId) -> Result<bool, SessionError>
pub async fn revoke_subject(&self, subject: &str) -> Result<usize, SessionError>
Trait Implementations§
Source§impl Clone for SessionService
impl Clone for SessionService
Source§fn clone(&self) -> SessionService
fn clone(&self) -> SessionService
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl !RefUnwindSafe for SessionService
impl !UnwindSafe for SessionService
impl Freeze for SessionService
impl Send for SessionService
impl Sync for SessionService
impl Unpin for SessionService
impl UnsafeUnpin for SessionService
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more