File tree Expand file tree Collapse file tree 1 file changed +18
-0
lines changed
crates/ironrdp-connector/src Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -154,6 +154,24 @@ impl ClientConnector {
154
154
self . static_channels . insert ( channel) ;
155
155
}
156
156
157
+ pub fn get_static_channel_processor < T > ( & mut self ) -> Option < & T >
158
+ where
159
+ T : SvcClientProcessor + ' static ,
160
+ {
161
+ self . static_channels
162
+ . get_by_type :: < T > ( )
163
+ . and_then ( |channel| channel. channel_processor_downcast_ref ( ) )
164
+ }
165
+
166
+ pub fn get_static_channel_processor_mut < T > ( & mut self ) -> Option < & mut T >
167
+ where
168
+ T : SvcClientProcessor + ' static ,
169
+ {
170
+ self . static_channels
171
+ . get_by_type_mut :: < T > ( )
172
+ . and_then ( |channel| channel. channel_processor_downcast_mut ( ) )
173
+ }
174
+
157
175
pub fn should_perform_security_upgrade ( & self ) -> bool {
158
176
matches ! ( self . state, ClientConnectorState :: EnhancedSecurityUpgrade { .. } )
159
177
}
You can’t perform that action at this time.
0 commit comments