shield

Trait Provider

Source
pub trait Provider: Send + Sync {
    // Required methods
    fn id(&self) -> String;
    fn subproviders<'life0, 'async_trait>(
        &'life0 self,
    ) -> Pin<Box<dyn Future<Output = Result<Vec<Box<dyn Subprovider>>, ShieldError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn subprovider_by_id<'life0, 'life1, 'async_trait>(
        &'life0 self,
        subprovider_id: &'life1 str,
    ) -> Pin<Box<dyn Future<Output = Result<Option<Box<dyn Subprovider>>, ShieldError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn sign_in<'life0, 'async_trait>(
        &'life0 self,
        request: SignInRequest,
        session: Session,
    ) -> Pin<Box<dyn Future<Output = Result<Response, ShieldError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn sign_in_callback<'life0, 'async_trait>(
        &'life0 self,
        request: SignInCallbackRequest,
        session: Session,
    ) -> Pin<Box<dyn Future<Output = Result<Response, ShieldError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn sign_out<'life0, 'async_trait>(
        &'life0 self,
        request: SignOutRequest,
        session: Session,
    ) -> Pin<Box<dyn Future<Output = Result<Response, ShieldError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}

Required Methods§

Source

fn id(&self) -> String

Source

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

Source

fn subprovider_by_id<'life0, 'life1, 'async_trait>( &'life0 self, subprovider_id: &'life1 str, ) -> Pin<Box<dyn Future<Output = Result<Option<Box<dyn Subprovider>>, ShieldError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source

fn sign_in<'life0, 'async_trait>( &'life0 self, request: SignInRequest, session: Session, ) -> Pin<Box<dyn Future<Output = Result<Response, ShieldError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn sign_in_callback<'life0, 'async_trait>( &'life0 self, request: SignInCallbackRequest, session: Session, ) -> Pin<Box<dyn Future<Output = Result<Response, ShieldError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn sign_out<'life0, 'async_trait>( &'life0 self, request: SignOutRequest, session: Session, ) -> Pin<Box<dyn Future<Output = Result<Response, ShieldError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Implementors§