[][src]Trait casbin::InternalApi

pub trait InternalApi: CoreApi + EventEmitter<Event> {
#[must_use]    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
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        Self: 'async_trait
;
#[must_use] 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
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        Self: 'async_trait
;
#[must_use] 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
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        Self: 'async_trait
;
#[must_use] 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
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        Self: 'async_trait
;
#[must_use] 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
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        Self: 'async_trait
; }

Required methods

#[must_use]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
    'life0: 'async_trait,
    'life1: 'async_trait,
    'life2: 'async_trait,
    Self: 'async_trait, 

#[must_use]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
    'life0: 'async_trait,
    'life1: 'async_trait,
    'life2: 'async_trait,
    Self: 'async_trait, 

#[must_use]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
    'life0: 'async_trait,
    'life1: 'async_trait,
    'life2: 'async_trait,
    Self: 'async_trait, 

#[must_use]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
    'life0: 'async_trait,
    'life1: 'async_trait,
    'life2: 'async_trait,
    Self: 'async_trait, 

#[must_use]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
    'life0: 'async_trait,
    'life1: 'async_trait,
    'life2: 'async_trait,
    Self: 'async_trait, 

Loading content...

Implementors

impl<T> InternalApi for T where
    T: CoreApi + EventEmitter<Event>, 
[src]

Loading content...