fidl_fuchsia_pkg

Trait PackageResolverProxyInterface

Source
pub trait PackageResolverProxyInterface: Send + Sync {
    type ResolveResponseFut: Future<Output = Result<PackageResolverResolveResult, Error>> + Send;
    type ResolveWithContextResponseFut: Future<Output = Result<PackageResolverResolveWithContextResult, Error>> + Send;
    type GetHashResponseFut: Future<Output = Result<PackageResolverGetHashResult, Error>> + Send;

    // Required methods
    fn resolve(
        &self,
        package_url: &str,
        dir: ServerEnd<DirectoryMarker>,
    ) -> Self::ResolveResponseFut;
    fn resolve_with_context(
        &self,
        package_url: &str,
        context: &ResolutionContext,
        dir: ServerEnd<DirectoryMarker>,
    ) -> Self::ResolveWithContextResponseFut;
    fn get_hash(&self, package_url: &PackageUrl) -> Self::GetHashResponseFut;
}

Required Associated Types§

Required Methods§

Source

fn resolve( &self, package_url: &str, dir: ServerEnd<DirectoryMarker>, ) -> Self::ResolveResponseFut

Source

fn resolve_with_context( &self, package_url: &str, context: &ResolutionContext, dir: ServerEnd<DirectoryMarker>, ) -> Self::ResolveWithContextResponseFut

Source

fn get_hash(&self, package_url: &PackageUrl) -> Self::GetHashResponseFut

Implementors§