Skip to main content

AuthorityProxyInterface

Trait AuthorityProxyInterface 

Source
pub trait AuthorityProxyInterface: Send + Sync {
    type LookupResponseFut: Future<Output = Result<AuthorityLookupResult, Error>> + Send;

    // Required method
    fn lookup(&self, package_url: &PackageUrl) -> Self::LookupResponseFut;
}

Required Associated Types§

Required Methods§

Source

fn lookup(&self, package_url: &PackageUrl) -> Self::LookupResponseFut

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§