Struct gha_toolkit::cache::CacheClientBuilder
source · [−]pub struct CacheClientBuilder { /* private fields */ }Implementations
sourceimpl CacheClientBuilder
impl CacheClientBuilder
pub fn new<B: Into<String>, T: Into<String>>(
base_url: B,
token: T,
key: &str,
restore_keys: &[&str]
) -> Result<Self>
pub fn user_agent<T: Into<String>>(self, user_agent: T) -> Self
pub fn base_url<T: Into<String>>(self, base_url: T) -> Self
pub fn token<T: Into<String>>(self, token: T) -> Self
pub fn max_retries(self, max_retries: u32) -> Self
pub fn min_retry_interval(self, min_retry_interval: Duration) -> Self
pub fn max_retry_interval(self, max_retry_interval: Duration) -> Self
pub fn backoff_factor_base(self, backoff_factor_base: u32) -> Self
pub fn download_chunk_timeout(self, download_chunk_timeout: Duration) -> Self
pub fn download_chunk_size(self, download_chunk_size: u64) -> Self
pub fn download_concurrency(self, download_concurrency: u32) -> Self
pub fn upload_concurrency(self, upload_concurrency: u32) -> Self
pub fn upload_chunk_size(self, upload_chunk_size: u64) -> Self
pub fn upload_chunk_timeout(self, upload_chunk_timeout: Duration) -> Self
pub fn build(self) -> Result<CacheClient>
Auto Trait Implementations
impl RefUnwindSafe for CacheClientBuilder
impl Send for CacheClientBuilder
impl Sync for CacheClientBuilder
impl Unpin for CacheClientBuilder
impl UnwindSafe for CacheClientBuilder
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