Skip to main content

RegistryRpc

Trait RegistryRpc 

Source
pub trait RegistryRpc: Send + Sync {
    type Repo: RepositoryRpc;

    // Required methods
    fn repo(&self, repo_id: &str) -> Self::Repo;
    fn list<'life0, 'async_trait>(
        &'life0 self,
    ) -> Pin<Box<dyn Future<Output = Result<Vec<TrackedRepository>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn get<'life0, 'life1, 'async_trait>(
        &'life0 self,
        value: &'life1 str,
    ) -> Pin<Box<dyn Future<Output = Result<TrackedRepository>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn get_by_name<'life0, 'life1, 'async_trait>(
        &'life0 self,
        value: &'life1 str,
    ) -> Pin<Box<dyn Future<Output = Result<TrackedRepository>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn clone<'life0, 'life1, 'async_trait>(
        &'life0 self,
        request: &'life1 CloneRequest,
    ) -> Pin<Box<dyn Future<Output = Result<TrackedRepository>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn register<'life0, 'life1, 'async_trait>(
        &'life0 self,
        request: &'life1 RegisterRequest,
    ) -> Pin<Box<dyn Future<Output = Result<TrackedRepository>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn remove<'life0, 'life1, 'async_trait>(
        &'life0 self,
        value: &'life1 str,
    ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn health_check<'life0, 'async_trait>(
        &'life0 self,
    ) -> Pin<Box<dyn Future<Output = Result<HealthStatus>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn clone_stream<'life0, 'life1, 'async_trait>(
        &'life0 self,
        request: &'life1 CloneRequest,
    ) -> Pin<Box<dyn Future<Output = Result<MoqStreamHandle>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn get_blob<'life0, 'life1, 'async_trait>(
        &'life0 self,
        request: &'life1 GetBlobRequest,
    ) -> Pin<Box<dyn Future<Output = Result<MoqStreamHandle>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn put_blob<'life0, 'life1, 'async_trait>(
        &'life0 self,
        request: &'life1 PutBlobRequest,
    ) -> Pin<Box<dyn Future<Output = Result<PutBlobResult>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn ingest_at9p_candidate<'life0, 'life1, 'async_trait>(
        &'life0 self,
        request: &'life1 At9pCandidateRequest,
    ) -> Pin<Box<dyn Future<Output = Result<AcceptedAt9pStateInfo>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
}
Expand description

Generated RPC trait for the Registry service.

Required Associated Types§

Required Methods§

Source

fn repo(&self, repo_id: &str) -> Self::Repo

Source

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

Source

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

Source

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

Source

fn clone<'life0, 'life1, 'async_trait>( &'life0 self, request: &'life1 CloneRequest, ) -> Pin<Box<dyn Future<Output = Result<TrackedRepository>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source

fn register<'life0, 'life1, 'async_trait>( &'life0 self, request: &'life1 RegisterRequest, ) -> Pin<Box<dyn Future<Output = Result<TrackedRepository>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source

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

Source

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

Source

fn clone_stream<'life0, 'life1, 'async_trait>( &'life0 self, request: &'life1 CloneRequest, ) -> Pin<Box<dyn Future<Output = Result<MoqStreamHandle>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source

fn get_blob<'life0, 'life1, 'async_trait>( &'life0 self, request: &'life1 GetBlobRequest, ) -> Pin<Box<dyn Future<Output = Result<MoqStreamHandle>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source

fn put_blob<'life0, 'life1, 'async_trait>( &'life0 self, request: &'life1 PutBlobRequest, ) -> Pin<Box<dyn Future<Output = Result<PutBlobResult>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source

fn ingest_at9p_candidate<'life0, 'life1, 'async_trait>( &'life0 self, request: &'life1 At9pCandidateRequest, ) -> Pin<Box<dyn Future<Output = Result<AcceptedAt9pStateInfo>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Implementors§