Trait rraw::auth::Authenticator [−][src]
pub trait Authenticator { fn login<'life0, 'life1, 'life2, 'async_trait>(
&'life0 mut self,
client: &'life1 Client,
user_agent: &'life2 str
) -> Pin<Box<dyn Future<Output = Result<bool, APIError>> + Send + 'async_trait>>
where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Self: '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<(), APIError>> + Send + 'async_trait>>
where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Self: 'async_trait; fn headers(&self, headers: &mut HeaderMap); fn oauth(&self) -> bool; fn needs_token_refresh(&self) -> bool; }
Required methods
Logins to the Reddit API true if successful
Releases the token back to Reddit
fn needs_token_refresh(&self) -> bool
fn needs_token_refresh(&self) -> bool
Does the Token need refresh