@@ -25,18 +25,18 @@ pub trait DvcChannelListener: Send {
2525
2626 /// Called for each incoming DYNVC_CREATE_REQ matching this name.
2727 /// Return `None` to reject (NO_LISTENER).
28- fn create ( & mut self , channel_id : DynamicChannelId ) -> Option < Box < dyn DvcProcessor > > ;
28+ fn create ( & mut self , channel_id : DynamicChannelId ) -> Option < Box < dyn DvcClientProcessor > > ;
2929}
3030
3131pub type DynamicChannelListener = Box < dyn DvcChannelListener > ;
3232
3333/// For pre-registered DVC
3434struct OnceListener {
35- inner : Option < Box < dyn DvcProcessor > > ,
35+ inner : Option < Box < dyn DvcClientProcessor > > ,
3636}
3737
3838impl OnceListener {
39- fn new ( dvc_processor : impl DvcProcessor + ' static ) -> Self {
39+ fn new ( dvc_processor : impl DvcClientProcessor + ' static ) -> Self {
4040 Self {
4141 inner : Some ( Box :: new ( dvc_processor) ) ,
4242 }
@@ -51,7 +51,7 @@ impl DvcChannelListener for OnceListener {
5151 . channel_name ( )
5252 }
5353
54- fn create ( & mut self , _channel_id : DynamicChannelId ) -> Option < Box < dyn DvcProcessor > > {
54+ fn create ( & mut self , _channel_id : DynamicChannelId ) -> Option < Box < dyn DvcClientProcessor > > {
5555 self . inner . take ( )
5656 }
5757}
@@ -100,7 +100,7 @@ impl DrdynvcClient {
100100 #[ must_use]
101101 pub fn with_dynamic_channel < T > ( mut self , channel : T ) -> Self
102102 where
103- T : DvcProcessor + ' static ,
103+ T : DvcClientProcessor + ' static ,
104104 {
105105 self . dynamic_channels . register_once ( channel) ;
106106 self
@@ -115,7 +115,7 @@ impl DrdynvcClient {
115115 /// it will be silently overwritten.
116116 pub fn attach_dynamic_channel < T > ( & mut self , channel : T )
117117 where
118- T : DvcProcessor + ' static ,
118+ T : DvcClientProcessor + ' static ,
119119 {
120120 self . dynamic_channels . register_once ( channel) ;
121121 }
@@ -152,7 +152,7 @@ impl DrdynvcClient {
152152
153153 pub fn get_dvc_by_type_id < T > ( & self ) -> Option < & DynamicVirtualChannel >
154154 where
155- T : DvcProcessor ,
155+ T : DvcClientProcessor ,
156156 {
157157 self . dynamic_channels . get_by_type_id ( TypeId :: of :: < T > ( ) )
158158 }
@@ -303,7 +303,7 @@ impl DynamicChannelSet {
303303 ) ;
304304 }
305305
306- fn register_once < T : DvcProcessor + ' static > ( & mut self , channel : T ) {
306+ fn register_once < T : DvcClientProcessor + ' static > ( & mut self , channel : T ) {
307307 let name = channel. channel_name ( ) . to_owned ( ) ;
308308 self . listeners . insert (
309309 name,
0 commit comments