Struct rraw::auth::AnonymousAuthenticator
source · pub struct AnonymousAuthenticator;
Expand description
AnonymousAuthenticator
Implementations§
source§impl AnonymousAuthenticator
impl AnonymousAuthenticator
sourcepub fn new() -> AnonymousAuthenticator
pub fn new() -> AnonymousAuthenticator
Creates a new Authenticator
Trait Implementations§
source§impl Authenticator for AnonymousAuthenticator
impl Authenticator for AnonymousAuthenticator
source§fn login<'life0, 'life1, 'life2, 'async_trait>(
&'life0 mut self,
_client: &'life1 Client,
_user_agent: &'life2 str
) -> Pin<Box<dyn Future<Output = Result<bool, Error>> + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn login<'life0, 'life1, 'life2, 'async_trait>( &'life0 mut self, _client: &'life1 Client, _user_agent: &'life2 str ) -> Pin<Box<dyn Future<Output = Result<bool, Error>> + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,
Returns true because it is anonymous
source§fn logout<'life0, 'life1, 'life2, 'async_trait>(
&'life0 mut self,
_client: &'life1 Client,
_user_agent: &'life2 str
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn logout<'life0, 'life1, 'life2, 'async_trait>( &'life0 mut self, _client: &'life1 Client, _user_agent: &'life2 str ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,
Does nothing
source§fn token_refresh<'life0, 'life1, 'life2, 'async_trait>(
&'life0 mut self,
_client: &'life1 Client,
_user_agent: &'life2 str
) -> Pin<Box<dyn Future<Output = Result<bool, Error>> + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn token_refresh<'life0, 'life1, 'life2, 'async_trait>( &'life0 mut self, _client: &'life1 Client, _user_agent: &'life2 str ) -> Pin<Box<dyn Future<Output = Result<bool, Error>> + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,
Returns true because it is anonymous
source§fn needs_token_refresh(&self) -> bool
fn needs_token_refresh(&self) -> bool
Always false
source§fn get_refresh_token(&self) -> Option<String>
fn get_refresh_token(&self) -> Option<String>
Always None
source§impl Clone for AnonymousAuthenticator
impl Clone for AnonymousAuthenticator
source§fn clone(&self) -> AnonymousAuthenticator
fn clone(&self) -> AnonymousAuthenticator
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for AnonymousAuthenticator
impl Debug for AnonymousAuthenticator
source§impl Default for AnonymousAuthenticator
impl Default for AnonymousAuthenticator
source§fn default() -> AnonymousAuthenticator
fn default() -> AnonymousAuthenticator
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl RefUnwindSafe for AnonymousAuthenticator
impl Send for AnonymousAuthenticator
impl Sync for AnonymousAuthenticator
impl Unpin for AnonymousAuthenticator
impl UnwindSafe for AnonymousAuthenticator
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