File tree Expand file tree Collapse file tree 2 files changed +10
-0
lines changed
Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -242,6 +242,11 @@ where
242242 }
243243 }
244244
245+ /// Checks if there are any streams
246+ pub fn has_streams ( & self ) -> bool {
247+ self . inner . streams . has_streams ( )
248+ }
249+
245250 /// Checks if there are any streams or references left
246251 pub fn has_streams_or_other_references ( & self ) -> bool {
247252 // If we poll() and realize that there are no streams or references
Original file line number Diff line number Diff line change @@ -553,6 +553,11 @@ where
553553 self . connection . take_user_pings ( ) . map ( PingPong :: new)
554554 }
555555
556+ /// Checks if there are any streams
557+ pub fn has_streams ( & self ) -> bool {
558+ self . connection . has_streams ( )
559+ }
560+
556561 /// Returns the maximum number of concurrent streams that may be initiated
557562 /// by the server on this connection.
558563 ///
You can’t perform that action at this time.
0 commit comments