Skip to main content

DynShield

Trait DynShield 

Source
pub trait DynShield: Send + Sync {
    // Required methods
    fn action_forms<'life0, 'life1, 'async_trait>(
        &'life0 self,
        action_id: &'life1 str,
        session: Session,
    ) -> Pin<Box<dyn Future<Output = Result<ActionForms, ShieldError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn call<'life0, 'life1, 'async_trait>(
        &'life0 self,
        action_id: &'life1 str,
        session: Session,
        request: Request,
    ) -> Pin<Box<dyn Future<Output = Result<ResponseType, ShieldError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn call_method<'life0, 'life1, 'life2, 'life3, 'async_trait>(
        &'life0 self,
        action_id: &'life1 str,
        method_id: &'life2 str,
        provider_id: Option<&'life3 str>,
        session: Session,
        request: Request,
    ) -> Pin<Box<dyn Future<Output = Result<ResponseType, ShieldError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait,
             'life3: 'async_trait;
}

Required Methods§

Source

fn action_forms<'life0, 'life1, 'async_trait>( &'life0 self, action_id: &'life1 str, session: Session, ) -> Pin<Box<dyn Future<Output = Result<ActionForms, ShieldError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source

fn call<'life0, 'life1, 'async_trait>( &'life0 self, action_id: &'life1 str, session: Session, request: Request, ) -> Pin<Box<dyn Future<Output = Result<ResponseType, ShieldError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source

fn call_method<'life0, 'life1, 'life2, 'life3, 'async_trait>( &'life0 self, action_id: &'life1 str, method_id: &'life2 str, provider_id: Option<&'life3 str>, session: Session, request: Request, ) -> Pin<Box<dyn Future<Output = Result<ResponseType, ShieldError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, 'life3: 'async_trait,

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl<U: User> DynShield for Shield<U>