pub struct OfflineAuth { /* private fields */ }Expand description
Offline authenticator — no network calls, suitable for offline play or testing.
Implementations§
Trait Implementations§
Source§impl Authenticator for OfflineAuth
impl Authenticator for OfflineAuth
Source§async fn authenticate(&mut self) -> AuthResult<UserProfile>
async fn authenticate(&mut self) -> AuthResult<UserProfile>
Authenticate a user and return their profile.
Source§fn verify(
&self,
token: &str,
) -> impl Future<Output = AuthResult<UserProfile>> + Send
fn verify( &self, token: &str, ) -> impl Future<Output = AuthResult<UserProfile>> + Send
Verify if a token is still valid.
Auto Trait Implementations§
impl Freeze for OfflineAuth
impl RefUnwindSafe for OfflineAuth
impl Send for OfflineAuth
impl Sync for OfflineAuth
impl Unpin for OfflineAuth
impl UnsafeUnpin for OfflineAuth
impl UnwindSafe for OfflineAuth
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