TwitterAuth

Trait TwitterAuth 

Source
pub trait TwitterAuth:
    Send
    + Sync
    + Any {
    // Required methods
    fn install_headers<'life0, 'life1, 'async_trait>(
        &'life0 self,
        headers: &'life1 mut HeaderMap,
    ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn get_cookies<'life0, 'async_trait>(
        &'life0 self,
    ) -> Pin<Box<dyn Future<Output = Result<Vec<Cookie<'_>>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn delete_token(&mut self);
    fn as_any(&self) -> &dyn Any;
}

Required Methods§

Source

fn install_headers<'life0, 'life1, 'async_trait>( &'life0 self, headers: &'life1 mut HeaderMap, ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source

fn get_cookies<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = Result<Vec<Cookie<'_>>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn delete_token(&mut self)

Source

fn as_any(&self) -> &dyn Any

Implementors§