fidl_fuchsia_pkg

Trait PackageCacheProxyInterface

Source
pub trait PackageCacheProxyInterface: Send + Sync {
    type GetResponseFut: Future<Output = Result<PackageCacheGetResult, Error>> + Send;
    type GetSubpackageResponseFut: Future<Output = Result<PackageCacheGetSubpackageResult, Error>> + Send;
    type SyncResponseFut: Future<Output = Result<PackageCacheSyncResult, Error>> + Send;
    type SetUpgradableUrlsResponseFut: Future<Output = Result<PackageCacheSetUpgradableUrlsResult, Error>> + Send;

    // Required methods
    fn get(
        &self,
        meta_far_blob: &BlobInfo,
        gc_protection: GcProtection,
        needed_blobs: ServerEnd<NeededBlobsMarker>,
        dir: ServerEnd<DirectoryMarker>,
    ) -> Self::GetResponseFut;
    fn get_subpackage(
        &self,
        superpackage: &BlobId,
        subpackage: &PackageUrl,
        dir: ServerEnd<DirectoryMarker>,
    ) -> Self::GetSubpackageResponseFut;
    fn base_package_index(
        &self,
        iterator: ServerEnd<PackageIndexIteratorMarker>,
    ) -> Result<(), Error>;
    fn cache_package_index(
        &self,
        iterator: ServerEnd<PackageIndexIteratorMarker>,
    ) -> Result<(), Error>;
    fn sync(&self) -> Self::SyncResponseFut;
    fn set_upgradable_urls(
        &self,
        pinned_urls: &[PackageUrl],
    ) -> Self::SetUpgradableUrlsResponseFut;
}

Required Associated Types§

Required Methods§

Source

fn get( &self, meta_far_blob: &BlobInfo, gc_protection: GcProtection, needed_blobs: ServerEnd<NeededBlobsMarker>, dir: ServerEnd<DirectoryMarker>, ) -> Self::GetResponseFut

Source

fn get_subpackage( &self, superpackage: &BlobId, subpackage: &PackageUrl, dir: ServerEnd<DirectoryMarker>, ) -> Self::GetSubpackageResponseFut

Source

fn base_package_index( &self, iterator: ServerEnd<PackageIndexIteratorMarker>, ) -> Result<(), Error>

Source

fn cache_package_index( &self, iterator: ServerEnd<PackageIndexIteratorMarker>, ) -> Result<(), Error>

Source

fn sync(&self) -> Self::SyncResponseFut

Source

fn set_upgradable_urls( &self, pinned_urls: &[PackageUrl], ) -> Self::SetUpgradableUrlsResponseFut

Implementors§