pub trait GitRegistryStore: GitRegistry {
// Required methods
fn put_repo<'life0, 'life1, 'async_trait>(
&'life0 self,
record: &'life1 RepoRecord,
) -> Pin<Box<dyn Future<Output = Result<(), RegistryError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn update_repo<'life0, 'life1, 'async_trait>(
&'life0 self,
record: &'life1 RepoRecord,
) -> Pin<Box<dyn Future<Output = Result<(), RegistryError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn remove_repo<'life0, 'life1, 'async_trait>(
&'life0 self,
repo_id: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<(), RegistryError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
}Expand description
The registry write supertrait (ADR-012 §1; alknet ADR-035’s read/write split shape — read on the wire hot path, write on the management path).
Grants ride RepoRecord (ADR-011), so grant mutation is
GitRegistryStore::update_repo — convenience wrappers (grant /
revoke as named methods) are additive later, two-way. The
git/repo/* ops are thin wrappers over Arc<dyn GitRegistryStore>
(ADR-012 §3).
Required Methods§
Sourcefn put_repo<'life0, 'life1, 'async_trait>(
&'life0 self,
record: &'life1 RepoRecord,
) -> Pin<Box<dyn Future<Output = Result<(), RegistryError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn put_repo<'life0, 'life1, 'async_trait>(
&'life0 self,
record: &'life1 RepoRecord,
) -> Pin<Box<dyn Future<Output = Result<(), RegistryError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Create a repo record (the id is minted by the store; ADR-012 §3).
Sourcefn update_repo<'life0, 'life1, 'async_trait>(
&'life0 self,
record: &'life1 RepoRecord,
) -> Pin<Box<dyn Future<Output = Result<(), RegistryError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn update_repo<'life0, 'life1, 'async_trait>(
&'life0 self,
record: &'life1 RepoRecord,
) -> Pin<Box<dyn Future<Output = Result<(), RegistryError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Replace a repo record — the grant-mutation path (ADR-011).
Sourcefn remove_repo<'life0, 'life1, 'async_trait>(
&'life0 self,
repo_id: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<(), RegistryError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn remove_repo<'life0, 'life1, 'async_trait>(
&'life0 self,
repo_id: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<(), RegistryError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Remove a repo record.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".