File tree 1 file changed +9
-1
lines changed
1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -479,19 +479,27 @@ impl StreamInstant {
479
479
Self :: new ( s, ns)
480
480
}
481
481
482
- fn new ( secs : i64 , nanos : u32 ) -> Self {
482
+ pub fn new ( secs : i64 , nanos : u32 ) -> Self {
483
483
StreamInstant { secs, nanos }
484
484
}
485
485
}
486
486
487
487
impl InputCallbackInfo {
488
+ pub fn new ( timestamp : InputStreamTimestamp ) -> Self {
489
+ Self { timestamp }
490
+ }
491
+
488
492
/// The timestamp associated with the call to an input stream's data callback.
489
493
pub fn timestamp ( & self ) -> InputStreamTimestamp {
490
494
self . timestamp
491
495
}
492
496
}
493
497
494
498
impl OutputCallbackInfo {
499
+ pub fn new ( timestamp : OutputStreamTimestamp ) -> Self {
500
+ Self { timestamp }
501
+ }
502
+
495
503
/// The timestamp associated with the call to an output stream's data callback.
496
504
pub fn timestamp ( & self ) -> OutputStreamTimestamp {
497
505
self . timestamp
You can’t perform that action at this time.
0 commit comments