1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
use NonZero;
/// Default partition size for partitioned downloads (4 MiB).
// unwrap evaluated at compile time
pub const DEFAULT_DOWNLOAD_PARTITION_SIZE: =
new.unwrap;
/// Default partition size for partitioned uploads (4 MiB).
// unwrap evaluated at compile time
pub const DEFAULT_UPLOAD_PARTITION_SIZE: =
new.unwrap;
/// Returns the default concurrency for partitioned uploads and downloads.
///
/// Formula: `min(max(available_parallelism, 8), 96)`
pub