Skip to main content

RacDeltaConfig

RacDeltaConfig represents the configuration that will be globally used within the client usage.
It composes of chunk size, max concurrency and a concrete storage configuration.

Each instance is produced automatically when creating a new rac-delta client.


Structure

pub enum StorageConfig {
S3(S3StorageConfig),
Azure(AzureBlobStorageGenericConfig),
GCS(GCSStorageConfig),
HTTP(HTTPStorageConfig),
SSH(SSHStorageConfig),
Local(LocalStorageConfig),
URL(URLStorageConfig)
}

pub struct RacDeltaConfig {
pub chunk_size: usize,
pub max_concurrency: Option<usize>,
pub storage: StorageConfig,
}

Properties

PropertyTypeDescription
chunk_sizeusizeThe size in bytes that will be used to divide files and creation of chunks (recommended is 1MB)
max_concurrencyOption<usize>Max number of concurrent tasks of the client for better performance.
storageStorageConfigConcrete configuration of the selected storage type.