[−][src]Trait casbin::Adapter
Required methods
#[must_use]fn load_policy<'life0, 'life1, 'async_trait>(
&'life0 self,
m: &'life1 mut dyn Model
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
&'life0 self,
m: &'life1 mut dyn Model
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
#[must_use]fn load_filtered_policy<'life0, 'life1, 'async_trait>(
&'life0 mut self,
m: &'life1 mut dyn Model,
f: Filter
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
&'life0 mut self,
m: &'life1 mut dyn Model,
f: Filter
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
#[must_use]fn save_policy<'life0, 'life1, 'async_trait>(
&'life0 mut self,
m: &'life1 mut dyn Model
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
&'life0 mut self,
m: &'life1 mut dyn Model
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
fn is_filtered(&self) -> bool
#[must_use]fn add_policy<'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,
&'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<'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,
&'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<'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,
&'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<'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,
&'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<'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>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Self: '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>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Self: 'async_trait,
Implementors
impl Adapter for MemoryAdapter
[src]
fn load_policy<'life0, 'life1, 'async_trait>(
&'life0 self,
m: &'life1 mut dyn Model
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
m: &'life1 mut dyn Model
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
fn load_filtered_policy<'life0, 'life1, 'async_trait>(
&'life0 mut self,
m: &'life1 mut dyn Model,
f: Filter
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
[src]
&'life0 mut self,
m: &'life1 mut dyn Model,
f: Filter
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
fn save_policy<'life0, 'life1, 'async_trait>(
&'life0 mut self,
m: &'life1 mut dyn Model
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
[src]
&'life0 mut self,
m: &'life1 mut dyn Model
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
fn add_policy<'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,
[src]
&'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,
fn add_policies<'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,
[src]
&'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,
fn remove_policies<'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,
[src]
&'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,
fn remove_policy<'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,
[src]
&'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,
fn remove_filtered_policy<'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>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Self: 'async_trait,
[src]
&'life0 mut self,
sec: &'life1 str,
ptype: &'life2 str,
field_index: usize,
field_values: 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,
fn is_filtered(&self) -> bool
[src]
impl Adapter for NullAdapter
[src]
fn load_policy<'life0, 'life1, 'async_trait>(
&'life0 self,
_m: &'life1 mut dyn Model
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
_m: &'life1 mut dyn Model
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
fn load_filtered_policy<'life0, 'life1, 'async_trait>(
&'life0 mut self,
_m: &'life1 mut dyn Model,
_f: Filter
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
[src]
&'life0 mut self,
_m: &'life1 mut dyn Model,
_f: Filter
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
fn save_policy<'life0, 'life1, 'async_trait>(
&'life0 mut self,
_m: &'life1 mut dyn Model
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
[src]
&'life0 mut self,
_m: &'life1 mut dyn Model
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
fn add_policy<'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,
[src]
&'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,
fn add_policies<'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,
[src]
&'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,
fn remove_policies<'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,
[src]
&'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,
fn remove_policy<'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,
[src]
&'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,
fn remove_filtered_policy<'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>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Self: 'async_trait,
[src]
&'life0 mut self,
_sec: &'life1 str,
_ptype: &'life2 str,
_field_index: usize,
_field_values: 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,
fn is_filtered(&self) -> bool
[src]
impl<P> Adapter for FileAdapter<P> where
P: AsRef<Path> + Send + Sync,
[src]
P: AsRef<Path> + Send + Sync,
fn load_policy<'life0, 'life1, 'async_trait>(
&'life0 self,
m: &'life1 mut dyn Model
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
m: &'life1 mut dyn Model
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
fn load_filtered_policy<'life0, 'life1, 'async_trait>(
&'life0 mut self,
m: &'life1 mut dyn Model,
f: Filter
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
[src]
&'life0 mut self,
m: &'life1 mut dyn Model,
f: Filter
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
fn save_policy<'life0, 'life1, 'async_trait>(
&'life0 mut self,
m: &'life1 mut dyn Model
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
[src]
&'life0 mut self,
m: &'life1 mut dyn Model
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
fn add_policy<'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,
[src]
&'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,
fn add_policies<'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,
[src]
&'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,
fn remove_policy<'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,
[src]
&'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,
fn remove_policies<'life0, 'life1, 'life2, 'async_trait>(
&'life0 mut self,
_sec: &'life1 str,
_ptype: &'life2 str,
_rule: 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,
[src]
&'life0 mut self,
_sec: &'life1 str,
_ptype: &'life2 str,
_rule: 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,
fn remove_filtered_policy<'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>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Self: 'async_trait,
[src]
&'life0 mut self,
_sec: &'life1 str,
_ptype: &'life2 str,
_field_index: usize,
_field_values: 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,