pub struct SessionAuth<'a> { /* private fields */ }Implementations§
Source§impl<'a> SessionAuth<'a>
impl<'a> SessionAuth<'a>
pub fn new(context: &'a AuthContext) -> Result<Self, RustAuthError>
pub async fn get_session( &self, input: GetSessionInput, ) -> Result<Option<GetSessionResult>, RustAuthError>
pub async fn sign_out( &self, cookie_header: impl AsRef<str>, ) -> Result<SignOutResult, RustAuthError>
Trait Implementations§
Source§impl<'a> Clone for SessionAuth<'a>
impl<'a> Clone for SessionAuth<'a>
Source§fn clone(&self) -> SessionAuth<'a>
fn clone(&self) -> SessionAuth<'a>
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 moreimpl<'a> Copy for SessionAuth<'a>
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for SessionAuth<'a>
impl<'a> !UnwindSafe for SessionAuth<'a>
impl<'a> Freeze for SessionAuth<'a>
impl<'a> Send for SessionAuth<'a>
impl<'a> Sync for SessionAuth<'a>
impl<'a> Unpin for SessionAuth<'a>
impl<'a> UnsafeUnpin for SessionAuth<'a>
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