@@ -15,31 +15,43 @@ extension ProgressReporter {
15
15
public struct Properties : Sendable {
16
16
public var totalFileCount : TotalFileCount . Type { TotalFileCount . self }
17
17
public struct TotalFileCount : Sendable , Property {
18
+ public static var defaultValue : Int { return 0 }
19
+
18
20
public typealias T = Int
19
21
}
20
22
21
23
public var completedFileCount : CompletedFileCount . Type { CompletedFileCount . self }
22
24
public struct CompletedFileCount : Sendable , Property {
25
+ public static var defaultValue : Int { return 0 }
26
+
23
27
public typealias T = Int
24
28
}
25
29
26
30
public var totalByteCount : TotalByteCount . Type { TotalByteCount . self }
27
31
public struct TotalByteCount : Sendable , Property {
32
+ public static var defaultValue : Int64 { return 0 }
33
+
28
34
public typealias T = Int64
29
35
}
30
36
31
37
public var completedByteCount : CompletedByteCount . Type { CompletedByteCount . self }
32
38
public struct CompletedByteCount : Sendable , Property {
39
+ public static var defaultValue : Int64 { return 0 }
40
+
33
41
public typealias T = Int64
34
42
}
35
43
36
44
public var throughput : Throughput . Type { Throughput . self }
37
45
public struct Throughput : Sendable , Property {
46
+ public static var defaultValue : Int64 { return 0 }
47
+
38
48
public typealias T = Int64
39
49
}
40
50
41
51
public var estimatedTimeRemaining : EstimatedTimeRemaining . Type { EstimatedTimeRemaining . self }
42
52
public struct EstimatedTimeRemaining : Sendable , Property {
53
+ public static var defaultValue : Duration { return Duration . seconds ( 0 ) }
54
+
43
55
public typealias T = Duration
44
56
}
45
57
}
0 commit comments