pub trait PolicyStore: Send + Sync {
    // Required methods
    fn policy_set<'life0, 'async_trait>(
        &'life0 self
    ) -> Pin<Box<dyn Future<Output = PolicySet> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn get_policies<'life0, 'async_trait>(
        &'life0 self
    ) -> Pin<Box<dyn Future<Output = Vec<Policy>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn get_policy<'life0, 'life1, 'async_trait>(
        &'life0 self,
        id: &'life1 str
    ) -> Pin<Box<dyn Future<Output = Result<Policy, Box<dyn Error>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn create_policy<'life0, 'life1, 'async_trait>(
        &'life0 self,
        policy: &'life1 Policy
    ) -> Pin<Box<dyn Future<Output = Result<Policy, Box<dyn Error>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn update_policies<'life0, 'async_trait>(
        &'life0 self,
        policies: Vec<Policy>
    ) -> Pin<Box<dyn Future<Output = Result<Vec<Policy>, Box<dyn Error>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn update_policy<'life0, 'async_trait>(
        &'life0 self,
        id: String,
        policy: PolicyUpdate
    ) -> Pin<Box<dyn Future<Output = Result<Policy, Box<dyn Error>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn delete_policy<'life0, 'life1, 'async_trait>(
        &'life0 self,
        id: &'life1 str
    ) -> Pin<Box<dyn Future<Output = Result<Policy, Box<dyn Error>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
}

Required Methods§

source

fn policy_set<'life0, 'async_trait>( &'life0 self ) -> Pin<Box<dyn Future<Output = PolicySet> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait,

source

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

source

fn get_policy<'life0, 'life1, 'async_trait>( &'life0 self, id: &'life1 str ) -> Pin<Box<dyn Future<Output = Result<Policy, Box<dyn Error>>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

source

fn create_policy<'life0, 'life1, 'async_trait>( &'life0 self, policy: &'life1 Policy ) -> Pin<Box<dyn Future<Output = Result<Policy, Box<dyn Error>>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

source

fn update_policies<'life0, 'async_trait>( &'life0 self, policies: Vec<Policy> ) -> Pin<Box<dyn Future<Output = Result<Vec<Policy>, Box<dyn Error>>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait,

source

fn update_policy<'life0, 'async_trait>( &'life0 self, id: String, policy: PolicyUpdate ) -> Pin<Box<dyn Future<Output = Result<Policy, Box<dyn Error>>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait,

source

fn delete_policy<'life0, 'life1, 'async_trait>( &'life0 self, id: &'life1 str ) -> Pin<Box<dyn Future<Output = Result<Policy, Box<dyn Error>>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Implementors§