Struct gha_toolkit::cache::CacheClient
source · [−]pub struct CacheClient { /* private fields */ }Implementations
sourceimpl CacheClient
impl CacheClient
pub fn builder<B: Into<String>, T: Into<String>>(
base_url: B,
token: T,
key: &str,
restore_keys: &[&str]
) -> Result<CacheClientBuilder>
pub fn base_url(&self) -> &str
pub fn key(&self) -> &str
pub fn restore_keys(&self) -> &str
pub async fn entry(&self, version: &str) -> Result<Option<ArtifactCacheEntry>>
pub async fn get(&self, url: &str) -> Result<Vec<u8>>
pub async fn put<T: Read + Seek>(&self, version: &str, data: T) -> Result<()>
Auto Trait Implementations
impl !RefUnwindSafe for CacheClient
impl Send for CacheClient
impl Sync for CacheClient
impl Unpin for CacheClient
impl !UnwindSafe for CacheClient
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more