Skip to main content

RegistryClient

Trait RegistryClient 

Source
pub trait RegistryClient: Send + Sync {
    // Required methods
    fn get_by_name<'life0, 'life1, 'async_trait>(
        &'life0 self,
        name: &'life1 str,
    ) -> Pin<Box<dyn Future<Output = Result<Option<TrackedRepository>, RegistryError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn register<'life0, 'life1, 'life2, 'life3, 'async_trait>(
        &'life0 self,
        id: &'life1 RepoId,
        name: Option<&'life2 str>,
        path: &'life3 Path,
    ) -> Pin<Box<dyn Future<Output = Result<(), RegistryError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait,
             'life3: 'async_trait;
}
Expand description

Minimal registry client trait for checkpoint integration.

This is a subset of the full RegistryClient trait from hyprstream_core, containing only the methods needed for checkpoint management.

Required Methods§

Source

fn get_by_name<'life0, 'life1, 'async_trait>( &'life0 self, name: &'life1 str, ) -> Pin<Box<dyn Future<Output = Result<Option<TrackedRepository>, RegistryError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Get repository by name

Source

fn register<'life0, 'life1, 'life2, 'life3, 'async_trait>( &'life0 self, id: &'life1 RepoId, name: Option<&'life2 str>, path: &'life3 Path, ) -> Pin<Box<dyn Future<Output = Result<(), RegistryError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, 'life3: 'async_trait,

Register an existing repository

Implementors§