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§
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>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".