pub trait BundleStore: Send + Sync {
// Required methods
fn get<'life0, 'life1, 'async_trait>(
&'life0 self,
name: &'life1 BundleName,
) -> Pin<Box<dyn Future<Output = Result<Option<Vec<Scope>>, StoreError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn put<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
name: &'life1 BundleName,
scopes: &'life2 [Scope],
) -> Pin<Box<dyn Future<Output = Result<(), StoreError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait;
fn delete<'life0, 'life1, 'async_trait>(
&'life0 self,
name: &'life1 BundleName,
) -> Pin<Box<dyn Future<Output = Result<(), StoreError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
}Expand description
Persistence for the bundle table.
Mints read individual bundles by name; cross-call atomicity is not required — every mint takes a fresh snapshot.
Required Methods§
Sourcefn get<'life0, 'life1, 'async_trait>(
&'life0 self,
name: &'life1 BundleName,
) -> Pin<Box<dyn Future<Output = Result<Option<Vec<Scope>>, StoreError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn get<'life0, 'life1, 'async_trait>(
&'life0 self,
name: &'life1 BundleName,
) -> Pin<Box<dyn Future<Output = Result<Option<Vec<Scope>>, StoreError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
The literal scope list for name, or None if no such bundle.
Sourcefn put<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
name: &'life1 BundleName,
scopes: &'life2 [Scope],
) -> Pin<Box<dyn Future<Output = Result<(), StoreError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn put<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
name: &'life1 BundleName,
scopes: &'life2 [Scope],
) -> Pin<Box<dyn Future<Output = Result<(), StoreError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Create or overwrite the bundle named name with the supplied scopes.
Sourcefn delete<'life0, 'life1, 'async_trait>(
&'life0 self,
name: &'life1 BundleName,
) -> Pin<Box<dyn Future<Output = Result<(), StoreError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn delete<'life0, 'life1, 'async_trait>(
&'life0 self,
name: &'life1 BundleName,
) -> Pin<Box<dyn Future<Output = Result<(), StoreError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Remove the bundle named name. Grants still referencing it will fail
expand_scopes with BundleExpansionError::Unknown until the
stale grants are cleaned up.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".