pub struct RemoteCacheClient { /* private fields */ }Implementations§
Source§impl RemoteCacheClient
impl RemoteCacheClient
pub fn new(config: RemoteCacheConfig) -> Result<Self>
Sourcepub async fn get_blob_pack(
&self,
digests: &[CacheDigest],
staging_dir: &Path,
) -> Result<Option<RemoteBlobPack>>
pub async fn get_blob_pack( &self, digests: &[CacheDigest], staging_dir: &Path, ) -> Result<Option<RemoteBlobPack>>
Download verified CAS objects using the server’s negotiated blob-pack extension.
None means the server does not support blob packs. Objects omitted by a
supported server are absent from blobs, so callers can retry them through
the ordinary single-blob endpoint.
pub async fn get_action_result( &self, action: &CacheDigest, ) -> Result<Option<RemoteActionResult>>
pub async fn put_action_result(&self, result: &RemoteActionResult) -> Result<()>
pub async fn get_action_manifest( &self, key: &CacheDigest, ) -> Result<Option<RemoteActionManifest>>
pub async fn put_action_manifest( &self, key: &CacheDigest, bytes: &[u8], expected_etag: Option<&str>, ) -> Result<ManifestPutOutcome>
pub async fn get_blob( &self, digest: &CacheDigest, media_type: &'static str, ) -> Result<Vec<u8>>
pub async fn get_blob_file( &self, digest: &CacheDigest, staging_dir: &Path, ) -> Result<NamedTempFile>
pub async fn put_blob(&self, upload: &BlobUpload) -> Result<()>
Auto Trait Implementations§
impl !Freeze for RemoteCacheClient
impl !RefUnwindSafe for RemoteCacheClient
impl !UnwindSafe for RemoteCacheClient
impl Send for RemoteCacheClient
impl Sync for RemoteCacheClient
impl Unpin for RemoteCacheClient
impl UnsafeUnpin for RemoteCacheClient
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more