pub struct RemoteCacheConfig {
pub base_url: Url,
pub namespace: String,
pub token: Option<String>,
pub token_file: Option<PathBuf>,
pub oidc_audience: Option<String>,
pub connect_timeout: Duration,
pub read_timeout: Duration,
pub download_timeout: Duration,
pub retries: i64,
}Expand description
Connection, authentication, and retry settings for RemoteCacheClient.
Fields§
§base_url: UrlBase URL of the remote cache service.
namespace: StringServer-side namespace used to isolate cache objects.
token: Option<String>Static bearer token, if configured directly.
token_file: Option<PathBuf>File containing a bearer token that may be refreshed externally.
oidc_audience: Option<String>Audience used when obtaining an OIDC token from the CI environment.
connect_timeout: DurationMaximum time allowed to establish a connection.
read_timeout: DurationMaximum time without response progress for ordinary requests.
download_timeout: DurationOverall deadline for an individual blob download attempt.
retries: i64Number of attempts after the initial request for retryable failures.
Auto Trait Implementations§
impl Freeze for RemoteCacheConfig
impl RefUnwindSafe for RemoteCacheConfig
impl Send for RemoteCacheConfig
impl Sync for RemoteCacheConfig
impl Unpin for RemoteCacheConfig
impl UnsafeUnpin for RemoteCacheConfig
impl UnwindSafe for RemoteCacheConfig
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