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) -> Self
pub fn from_env() -> 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 cache_to<T: Into<String>>(self, cache_to: T) -> Self
pub fn cache_from<T>(self, cache_from: T) -> Selfwhere
T: Iterator,
T::Item: Into<String>,
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>
Trait Implementations
sourceimpl TryInto<CacheClient> for CacheClientBuilder
impl TryInto<CacheClient> for CacheClientBuilder
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