pub trait Store:
Clone
+ Send
+ Sync
+ 'static {
Show 28 methods
// Required methods
fn has_watcher(&self) -> bool;
fn save_iam_config<'life0, 'async_trait, Item>(
&'life0 self,
item: Item,
path: impl 'async_trait + AsRef<str> + Send,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Item: 'async_trait + Serialize + Send,
Self: 'async_trait,
'life0: 'async_trait;
fn load_iam_config<'life0, 'async_trait, Item>(
&'life0 self,
path: impl 'async_trait + AsRef<str> + Send,
) -> Pin<Box<dyn Future<Output = Result<Item>> + Send + 'async_trait>>
where Item: 'async_trait + DeserializeOwned,
Self: 'async_trait,
'life0: 'async_trait;
fn delete_iam_config<'life0, 'async_trait>(
&'life0 self,
path: impl 'async_trait + AsRef<str> + Send,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn save_user_identity<'life0, 'life1, 'async_trait>(
&'life0 self,
name: &'life1 str,
user_type: UserType,
item: UserIdentity,
ttl: Option<usize>,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn delete_user_identity<'life0, 'life1, 'async_trait>(
&'life0 self,
name: &'life1 str,
user_type: UserType,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn load_user_identity<'life0, 'life1, 'async_trait>(
&'life0 self,
name: &'life1 str,
user_type: UserType,
) -> Pin<Box<dyn Future<Output = Result<UserIdentity>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn load_user<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
name: &'life1 str,
user_type: UserType,
m: &'life2 mut HashMap<String, UserIdentity>,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait;
fn load_users<'life0, 'life1, 'async_trait>(
&'life0 self,
user_type: UserType,
m: &'life1 mut HashMap<String, UserIdentity>,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn load_secret_key<'life0, 'life1, 'async_trait>(
&'life0 self,
name: &'life1 str,
user_type: UserType,
) -> Pin<Box<dyn Future<Output = Result<String>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn save_group_info<'life0, 'life1, 'async_trait>(
&'life0 self,
name: &'life1 str,
item: GroupInfo,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn delete_group_info<'life0, 'life1, 'async_trait>(
&'life0 self,
name: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn load_group<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
name: &'life1 str,
m: &'life2 mut HashMap<String, GroupInfo>,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait;
fn load_groups<'life0, 'life1, 'async_trait>(
&'life0 self,
m: &'life1 mut HashMap<String, GroupInfo>,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn save_policy_doc<'life0, 'life1, 'async_trait>(
&'life0 self,
name: &'life1 str,
item: PolicyDoc,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn delete_policy_doc<'life0, 'life1, 'async_trait>(
&'life0 self,
name: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn load_policy<'life0, 'life1, 'async_trait>(
&'life0 self,
name: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<PolicyDoc>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn load_policy_doc<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
name: &'life1 str,
m: &'life2 mut HashMap<String, PolicyDoc>,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait;
fn load_policy_docs<'life0, 'life1, 'async_trait>(
&'life0 self,
m: &'life1 mut HashMap<String, PolicyDoc>,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn save_mapped_policy<'life0, 'life1, 'async_trait>(
&'life0 self,
name: &'life1 str,
user_type: UserType,
is_group: bool,
item: MappedPolicy,
ttl: Option<usize>,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn delete_mapped_policy<'life0, 'life1, 'async_trait>(
&'life0 self,
name: &'life1 str,
user_type: UserType,
is_group: bool,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn load_mapped_policy<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
name: &'life1 str,
user_type: UserType,
is_group: bool,
m: &'life2 mut HashMap<String, MappedPolicy>,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait;
fn load_mapped_policies<'life0, 'life1, 'async_trait>(
&'life0 self,
user_type: UserType,
is_group: bool,
m: &'life1 mut HashMap<String, MappedPolicy>,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn load_all<'life0, 'life1, 'async_trait>(
&'life0 self,
cache: &'life1 Cache,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
// Provided methods
fn load_user_no_lock<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
name: &'life1 str,
user_type: UserType,
m: &'life2 mut HashMap<String, UserIdentity>,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait { ... }
fn load_group_no_lock<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
name: &'life1 str,
m: &'life2 mut HashMap<String, GroupInfo>,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait { ... }
fn load_policy_doc_no_lock<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
name: &'life1 str,
m: &'life2 mut HashMap<String, PolicyDoc>,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait { ... }
fn load_mapped_policy_no_lock<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
name: &'life1 str,
user_type: UserType,
is_group: bool,
m: &'life2 mut HashMap<String, MappedPolicy>,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait { ... }
}Required Methods§
fn has_watcher(&self) -> bool
fn save_iam_config<'life0, 'async_trait, Item>( &'life0 self, item: Item, path: impl 'async_trait + AsRef<str> + Send, ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
fn load_iam_config<'life0, 'async_trait, Item>(
&'life0 self,
path: impl 'async_trait + AsRef<str> + Send,
) -> Pin<Box<dyn Future<Output = Result<Item>> + Send + 'async_trait>>where
Item: 'async_trait + DeserializeOwned,
Self: 'async_trait,
'life0: 'async_trait,
fn delete_iam_config<'life0, 'async_trait>(
&'life0 self,
path: impl 'async_trait + AsRef<str> + Send,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn save_user_identity<'life0, 'life1, 'async_trait>(
&'life0 self,
name: &'life1 str,
user_type: UserType,
item: UserIdentity,
ttl: Option<usize>,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn delete_user_identity<'life0, 'life1, 'async_trait>(
&'life0 self,
name: &'life1 str,
user_type: UserType,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn load_user_identity<'life0, 'life1, 'async_trait>(
&'life0 self,
name: &'life1 str,
user_type: UserType,
) -> Pin<Box<dyn Future<Output = Result<UserIdentity>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn load_user<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
name: &'life1 str,
user_type: UserType,
m: &'life2 mut HashMap<String, UserIdentity>,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn load_users<'life0, 'life1, 'async_trait>(
&'life0 self,
user_type: UserType,
m: &'life1 mut HashMap<String, UserIdentity>,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn load_secret_key<'life0, 'life1, 'async_trait>(
&'life0 self,
name: &'life1 str,
user_type: UserType,
) -> Pin<Box<dyn Future<Output = Result<String>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn save_group_info<'life0, 'life1, 'async_trait>(
&'life0 self,
name: &'life1 str,
item: GroupInfo,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn delete_group_info<'life0, 'life1, 'async_trait>(
&'life0 self,
name: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn load_group<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
name: &'life1 str,
m: &'life2 mut HashMap<String, GroupInfo>,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn load_groups<'life0, 'life1, 'async_trait>(
&'life0 self,
m: &'life1 mut HashMap<String, GroupInfo>,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn save_policy_doc<'life0, 'life1, 'async_trait>(
&'life0 self,
name: &'life1 str,
item: PolicyDoc,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn delete_policy_doc<'life0, 'life1, 'async_trait>(
&'life0 self,
name: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn load_policy<'life0, 'life1, 'async_trait>(
&'life0 self,
name: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<PolicyDoc>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn load_policy_doc<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
name: &'life1 str,
m: &'life2 mut HashMap<String, PolicyDoc>,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn load_policy_docs<'life0, 'life1, 'async_trait>(
&'life0 self,
m: &'life1 mut HashMap<String, PolicyDoc>,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn save_mapped_policy<'life0, 'life1, 'async_trait>(
&'life0 self,
name: &'life1 str,
user_type: UserType,
is_group: bool,
item: MappedPolicy,
ttl: Option<usize>,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn delete_mapped_policy<'life0, 'life1, 'async_trait>(
&'life0 self,
name: &'life1 str,
user_type: UserType,
is_group: bool,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn load_mapped_policy<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
name: &'life1 str,
user_type: UserType,
is_group: bool,
m: &'life2 mut HashMap<String, MappedPolicy>,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn load_mapped_policies<'life0, 'life1, 'async_trait>(
&'life0 self,
user_type: UserType,
is_group: bool,
m: &'life1 mut HashMap<String, MappedPolicy>,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn load_all<'life0, 'life1, 'async_trait>(
&'life0 self,
cache: &'life1 Cache,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Provided Methods§
fn load_user_no_lock<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
name: &'life1 str,
user_type: UserType,
m: &'life2 mut HashMap<String, UserIdentity>,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn load_group_no_lock<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
name: &'life1 str,
m: &'life2 mut HashMap<String, GroupInfo>,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn load_policy_doc_no_lock<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
name: &'life1 str,
m: &'life2 mut HashMap<String, PolicyDoc>,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn load_mapped_policy_no_lock<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
name: &'life1 str,
user_type: UserType,
is_group: bool,
m: &'life2 mut HashMap<String, MappedPolicy>,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".