File tree 2 files changed +20
-0
lines changed
2 files changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -548,6 +548,16 @@ where
548
548
pub fn is_extended_connect_protocol_enabled ( & self ) -> bool {
549
549
self . inner . is_extended_connect_protocol_enabled ( )
550
550
}
551
+
552
+ /// Returns the current max send streams
553
+ pub fn current_max_send_streams ( & self ) -> usize {
554
+ self . inner . current_max_send_streams ( )
555
+ }
556
+
557
+ /// Returns the current max recv streams
558
+ pub fn current_max_recv_streams ( & self ) -> usize {
559
+ self . inner . current_max_recv_streams ( )
560
+ }
551
561
}
552
562
553
563
impl < B > fmt:: Debug for SendRequest < B >
Original file line number Diff line number Diff line change @@ -320,6 +320,16 @@ where
320
320
. send
321
321
. is_extended_connect_protocol_enabled ( )
322
322
}
323
+
324
+ pub fn current_max_send_streams ( & self ) -> usize {
325
+ let me = self . inner . lock ( ) . unwrap ( ) ;
326
+ me. counts . max_send_streams ( )
327
+ }
328
+
329
+ pub fn current_max_recv_streams ( & self ) -> usize {
330
+ let me = self . inner . lock ( ) . unwrap ( ) ;
331
+ me. counts . max_recv_streams ( )
332
+ }
323
333
}
324
334
325
335
impl < B > DynStreams < ' _ , B > {
You can’t perform that action at this time.
0 commit comments