pub trait RepositoryManagerProxyInterface: Send + Sync {
    type AddResponseFut: Future<Output = Result<RepositoryManagerAddResult, Error>> + Send;
    type RemoveResponseFut: Future<Output = Result<RepositoryManagerRemoveResult, Error>> + Send;
    type AddMirrorResponseFut: Future<Output = Result<RepositoryManagerAddMirrorResult, Error>> + Send;
    type RemoveMirrorResponseFut: Future<Output = Result<RepositoryManagerRemoveMirrorResult, Error>> + Send;

    // Required methods
    fn add(&self, repo: &RepositoryConfig) -> Self::AddResponseFut;
    fn remove(&self, repo_url: &str) -> Self::RemoveResponseFut;
    fn add_mirror(
        &self,
        repo_url: &str,
        mirror: &MirrorConfig
    ) -> Self::AddMirrorResponseFut;
    fn remove_mirror(
        &self,
        repo_url: &str,
        mirror_url: &str
    ) -> Self::RemoveMirrorResponseFut;
    fn list(
        &self,
        iterator: ServerEnd<RepositoryIteratorMarker>
    ) -> Result<(), Error>;
}

Required Associated Types§

Required Methods§

source

fn add(&self, repo: &RepositoryConfig) -> Self::AddResponseFut

source

fn remove(&self, repo_url: &str) -> Self::RemoveResponseFut

source

fn add_mirror( &self, repo_url: &str, mirror: &MirrorConfig ) -> Self::AddMirrorResponseFut

source

fn remove_mirror( &self, repo_url: &str, mirror_url: &str ) -> Self::RemoveMirrorResponseFut

source

fn list( &self, iterator: ServerEnd<RepositoryIteratorMarker> ) -> Result<(), Error>

Implementors§

source§

impl RepositoryManagerProxyInterface for RepositoryManagerProxy

§

type AddResponseFut = QueryResponseFut<Result<(), i32>>

§

type RemoveResponseFut = QueryResponseFut<Result<(), i32>>

§

type AddMirrorResponseFut = QueryResponseFut<Result<(), i32>>

§

type RemoveMirrorResponseFut = QueryResponseFut<Result<(), i32>>