@@ -393,6 +393,18 @@ mod impls {
393
393
self . 0 . init ( max, unit)
394
394
}
395
395
396
+ fn unit ( & self ) -> Option < Unit > {
397
+ self . 0 . unit ( )
398
+ }
399
+
400
+ fn max ( & self ) -> Option < Step > {
401
+ self . 0 . max ( )
402
+ }
403
+
404
+ fn set_max ( & mut self , max : Option < Step > ) -> Option < Step > {
405
+ self . 0 . set_max ( max)
406
+ }
407
+
396
408
fn set_name ( & mut self , name : String ) {
397
409
self . 0 . set_name ( name)
398
410
}
@@ -408,13 +420,33 @@ mod impls {
408
420
fn message ( & self , level : MessageLevel , message : String ) {
409
421
self . 0 . message ( level, message)
410
422
}
423
+
424
+ fn show_throughput ( & self , start : Instant ) {
425
+ self . 0 . show_throughput ( start)
426
+ }
427
+
428
+ fn show_throughput_with ( & self , start : Instant , step : Step , unit : Unit , level : MessageLevel ) {
429
+ self . 0 . show_throughput_with ( start, step, unit, level)
430
+ }
411
431
}
412
432
413
433
impl Progress for BoxedProgress {
414
434
fn init ( & mut self , max : Option < Step > , unit : Option < Unit > ) {
415
435
self . deref_mut ( ) . init ( max, unit)
416
436
}
417
437
438
+ fn unit ( & self ) -> Option < Unit > {
439
+ self . deref ( ) . unit ( )
440
+ }
441
+
442
+ fn max ( & self ) -> Option < Step > {
443
+ self . deref ( ) . max ( )
444
+ }
445
+
446
+ fn set_max ( & mut self , max : Option < Step > ) -> Option < Step > {
447
+ self . deref_mut ( ) . set_max ( max)
448
+ }
449
+
418
450
fn set_name ( & mut self , name : String ) {
419
451
self . deref_mut ( ) . set_name ( name)
420
452
}
@@ -430,6 +462,14 @@ mod impls {
430
462
fn message ( & self , level : MessageLevel , message : String ) {
431
463
self . deref ( ) . message ( level, message)
432
464
}
465
+
466
+ fn show_throughput ( & self , start : Instant ) {
467
+ self . deref ( ) . show_throughput ( start)
468
+ }
469
+
470
+ fn show_throughput_with ( & self , start : Instant , step : Step , unit : Unit , level : MessageLevel ) {
471
+ self . deref ( ) . show_throughput_with ( start, step, unit, level)
472
+ }
433
473
}
434
474
435
475
impl Count for BoxedDynNestedProgress {
@@ -496,6 +536,18 @@ mod impls {
496
536
self . 0 . init ( max, unit)
497
537
}
498
538
539
+ fn unit ( & self ) -> Option < Unit > {
540
+ self . 0 . unit ( )
541
+ }
542
+
543
+ fn max ( & self ) -> Option < Step > {
544
+ self . 0 . max ( )
545
+ }
546
+
547
+ fn set_max ( & mut self , max : Option < Step > ) -> Option < Step > {
548
+ self . 0 . set_max ( max)
549
+ }
550
+
499
551
fn set_name ( & mut self , name : String ) {
500
552
self . 0 . set_name ( name)
501
553
}
@@ -511,6 +563,14 @@ mod impls {
511
563
fn message ( & self , level : MessageLevel , message : String ) {
512
564
self . 0 . message ( level, message)
513
565
}
566
+
567
+ fn show_throughput ( & self , start : Instant ) {
568
+ self . 0 . show_throughput ( start)
569
+ }
570
+
571
+ fn show_throughput_with ( & self , start : Instant , step : Step , unit : Unit , level : MessageLevel ) {
572
+ self . 0 . show_throughput_with ( start, step, unit, level)
573
+ }
514
574
}
515
575
516
576
impl < T > Count for DynNestedProgressToNestedProgress < T >
0 commit comments