pub fn with_remote<P: AsRef<Path>>(
    path: P,
    cas_addresses: &[String],
    instance_name: Option<String>,
    root_ca_certs: &Option<Vec<u8>>,
    oauth_bearer_token: Option<String>,
    thread_count: usize,
    chunk_size_bytes: usize,
    upload_timeout: Duration,
    backoff_config: BackoffConfig,
    rpc_retries: usize,
    futures_timer_thread: futures_timer::TimerHandle,
  ) -> Result<Store, String> {
    Ok(Store {
      local: local::ByteStore::new(path)?,
      remote: Some(remote::ByteStore::new(
        cas_addresses,
        instance_name,
        root_ca_certs,
        oauth_bearer_token,
        thread_count,
        chunk_size_bytes,
        upload_timeout,
        backoff_config,
        rpc_retries,
        futures_timer_thread,
      )?),
    })
  }
///
/// Make a store which uses local storage, and if it is missing a value which it tries to load,
/// will attempt to back-fill its local storage from a remote CAS.
///
Make a store which uses local storage, and if it is missing a value which it tries to load,
will attempt to back-fill its local storage from a remote CAS.
Make a store which uses local storage and if it is missing a value which it tries to load will attempt to back - fill its local storage from a remote CAS .
pub fn with_remote<P: AsRef<Path>>(
    path: P,
    cas_addresses: &[String],
    instance_name: Option<String>,
    root_ca_certs: &Option<Vec<u8>>,
    oauth_bearer_token: Option<String>,
    thread_count: usize,
    chunk_size_bytes: usize,
    upload_timeout: Duration,
    backoff_config: BackoffConfig,
    rpc_retries: usize,
    futures_timer_thread: futures_timer::TimerHandle,
  ) -> Result<Store, String> {
    Ok(Store {
      local: local::ByteStore::new(path)?,
      remote: Some(remote::ByteStore::new(
        cas_addresses,
        instance_name,
        root_ca_certs,
        oauth_bearer_token,
        thread_count,
        chunk_size_bytes,
        upload_timeout,
        backoff_config,
        rpc_retries,
        futures_timer_thread,
      )?),
    })
  }
pub fn with_remote < P : AsRef < Path > > ( path : P , cas_addresses : & [ String ] , instance_name : Option < String > , root_ca_certs : & Option < Vec < u8 > > , oauth_bearer_token : Option < String > , thread_count : usize , chunk_size_bytes : usize , upload_timeout : Duration , backoff_config : BackoffConfig , rpc_retries : usize , futures_timer_thread : futures_timer :: TimerHandle , ) -> Result < Store , String > { Ok ( Store { local : local :: ByteStore :: new ( path ) ? , remote : Some ( remote :: ByteStore :: new ( cas_addresses , instance_name , root_ca_certs , oauth_bearer_token , thread_count , chunk_size_bytes , upload_timeout , backoff_config , rpc_retries , futures_timer_thread , ) ? ) , } ) }
Make a store which uses local storage, and if it is missing a value which it tries to load,
will attempt to back-fill its local storage from a remote CAS.
Make a store which uses local storage and if it is missing a value which it tries to load will attempt to back - fill its local storage from a remote CAS .
path
P
cas_addresses
&[String]
instance_name
Option<String>
root_ca_certs
&Option<Vec<u8>>
oauth_bearer_token
Option<String>
thread_count
usize
chunk_size_bytes
usize
upload_timeout
Duration
backoff_config
BackoffConfig
rpc_retries
usize
futures_timer_thread
futures_timer::TimerHandle
path
P
cas_addresses
&[String]
instance_name
Option<String>
root_ca_certs
&Option<Vec<u8>>
oauth_bearer_token
Option<String>
thread_count
usize
chunk_size_bytes
usize
upload_timeout
Duration
backoff_config
BackoffConfig
rpc_retries
usize
futures_timer_thread
futures_timer::TimerHandle