Trait casbin::InternalApi

source ·
pub trait InternalApi: IEnforcer {
    // Required methods
    fn add_policy_internal<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 mut self,
        sec: &'life1 str,
        ptype: &'life2 str,
        rule: Vec<String>
    ) -> Pin<Box<dyn Future<Output = Result<bool>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait;
    fn add_policies_internal<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 mut self,
        sec: &'life1 str,
        ptype: &'life2 str,
        rules: Vec<Vec<String>>
    ) -> Pin<Box<dyn Future<Output = Result<bool>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait;
    fn remove_policy_internal<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 mut self,
        sec: &'life1 str,
        ptype: &'life2 str,
        rule: Vec<String>
    ) -> Pin<Box<dyn Future<Output = Result<bool>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait;
    fn remove_policies_internal<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 mut self,
        sec: &'life1 str,
        ptype: &'life2 str,
        rules: Vec<Vec<String>>
    ) -> Pin<Box<dyn Future<Output = Result<bool>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait;
    fn remove_filtered_policy_internal<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 mut self,
        sec: &'life1 str,
        ptype: &'life2 str,
        field_index: usize,
        field_values: Vec<String>
    ) -> Pin<Box<dyn Future<Output = Result<(bool, Vec<Vec<String>>)>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait;
}

Required Methods§

source

fn add_policy_internal<'life0, 'life1, 'life2, 'async_trait>( &'life0 mut self, sec: &'life1 str, ptype: &'life2 str, rule: Vec<String> ) -> Pin<Box<dyn Future<Output = Result<bool>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

source

fn add_policies_internal<'life0, 'life1, 'life2, 'async_trait>( &'life0 mut self, sec: &'life1 str, ptype: &'life2 str, rules: Vec<Vec<String>> ) -> Pin<Box<dyn Future<Output = Result<bool>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

source

fn remove_policy_internal<'life0, 'life1, 'life2, 'async_trait>( &'life0 mut self, sec: &'life1 str, ptype: &'life2 str, rule: Vec<String> ) -> Pin<Box<dyn Future<Output = Result<bool>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

source

fn remove_policies_internal<'life0, 'life1, 'life2, 'async_trait>( &'life0 mut self, sec: &'life1 str, ptype: &'life2 str, rules: Vec<Vec<String>> ) -> Pin<Box<dyn Future<Output = Result<bool>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

source

fn remove_filtered_policy_internal<'life0, 'life1, 'life2, 'async_trait>( &'life0 mut self, sec: &'life1 str, ptype: &'life2 str, field_index: usize, field_values: Vec<String> ) -> Pin<Box<dyn Future<Output = Result<(bool, Vec<Vec<String>>)>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Implementors§

source§

impl<T> InternalApi for T
where T: IEnforcer,