fidl_fuchsia_pkg

Trait RepositoryManagerProxyInterface

Source
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§