@@ -169,58 +169,58 @@ impl<T: Client> Client for Rc<T> {
169169 & self ,
170170 args : RequestPermissionRequest ,
171171 ) -> Result < RequestPermissionResponse , Error > {
172- self . request_permission ( args) . await
172+ self . as_ref ( ) . request_permission ( args) . await
173173 }
174174 async fn write_text_file (
175175 & self ,
176176 args : WriteTextFileRequest ,
177177 ) -> Result < WriteTextFileResponse , Error > {
178- self . write_text_file ( args) . await
178+ self . as_ref ( ) . write_text_file ( args) . await
179179 }
180180 async fn read_text_file (
181181 & self ,
182182 args : ReadTextFileRequest ,
183183 ) -> Result < ReadTextFileResponse , Error > {
184- self . read_text_file ( args) . await
184+ self . as_ref ( ) . read_text_file ( args) . await
185185 }
186186 async fn session_notification ( & self , args : SessionNotification ) -> Result < ( ) , Error > {
187- self . session_notification ( args) . await
187+ self . as_ref ( ) . session_notification ( args) . await
188188 }
189189 async fn create_terminal (
190190 & self ,
191191 args : CreateTerminalRequest ,
192192 ) -> Result < CreateTerminalResponse , Error > {
193- self . create_terminal ( args) . await
193+ self . as_ref ( ) . create_terminal ( args) . await
194194 }
195195 async fn terminal_output (
196196 & self ,
197197 args : TerminalOutputRequest ,
198198 ) -> Result < TerminalOutputResponse , Error > {
199- self . terminal_output ( args) . await
199+ self . as_ref ( ) . terminal_output ( args) . await
200200 }
201201 async fn release_terminal (
202202 & self ,
203203 args : ReleaseTerminalRequest ,
204204 ) -> Result < ReleaseTerminalResponse , Error > {
205- self . release_terminal ( args) . await
205+ self . as_ref ( ) . release_terminal ( args) . await
206206 }
207207 async fn wait_for_terminal_exit (
208208 & self ,
209209 args : WaitForTerminalExitRequest ,
210210 ) -> Result < WaitForTerminalExitResponse , Error > {
211- self . wait_for_terminal_exit ( args) . await
211+ self . as_ref ( ) . wait_for_terminal_exit ( args) . await
212212 }
213213 async fn kill_terminal_command (
214214 & self ,
215215 args : KillTerminalCommandRequest ,
216216 ) -> Result < KillTerminalCommandResponse , Error > {
217- self . kill_terminal_command ( args) . await
217+ self . as_ref ( ) . kill_terminal_command ( args) . await
218218 }
219219 async fn ext_method ( & self , args : ExtRequest ) -> Result < ExtResponse , Error > {
220- self . ext_method ( args) . await
220+ self . as_ref ( ) . ext_method ( args) . await
221221 }
222222 async fn ext_notification ( & self , args : ExtNotification ) -> Result < ( ) , Error > {
223- self . ext_notification ( args) . await
223+ self . as_ref ( ) . ext_notification ( args) . await
224224 }
225225}
226226
@@ -230,58 +230,58 @@ impl<T: Client> Client for Arc<T> {
230230 & self ,
231231 args : RequestPermissionRequest ,
232232 ) -> Result < RequestPermissionResponse , Error > {
233- self . request_permission ( args) . await
233+ self . as_ref ( ) . request_permission ( args) . await
234234 }
235235 async fn write_text_file (
236236 & self ,
237237 args : WriteTextFileRequest ,
238238 ) -> Result < WriteTextFileResponse , Error > {
239- self . write_text_file ( args) . await
239+ self . as_ref ( ) . write_text_file ( args) . await
240240 }
241241 async fn read_text_file (
242242 & self ,
243243 args : ReadTextFileRequest ,
244244 ) -> Result < ReadTextFileResponse , Error > {
245- self . read_text_file ( args) . await
245+ self . as_ref ( ) . read_text_file ( args) . await
246246 }
247247 async fn session_notification ( & self , args : SessionNotification ) -> Result < ( ) , Error > {
248- self . session_notification ( args) . await
248+ self . as_ref ( ) . session_notification ( args) . await
249249 }
250250 async fn create_terminal (
251251 & self ,
252252 args : CreateTerminalRequest ,
253253 ) -> Result < CreateTerminalResponse , Error > {
254- self . create_terminal ( args) . await
254+ self . as_ref ( ) . create_terminal ( args) . await
255255 }
256256 async fn terminal_output (
257257 & self ,
258258 args : TerminalOutputRequest ,
259259 ) -> Result < TerminalOutputResponse , Error > {
260- self . terminal_output ( args) . await
260+ self . as_ref ( ) . terminal_output ( args) . await
261261 }
262262 async fn release_terminal (
263263 & self ,
264264 args : ReleaseTerminalRequest ,
265265 ) -> Result < ReleaseTerminalResponse , Error > {
266- self . release_terminal ( args) . await
266+ self . as_ref ( ) . release_terminal ( args) . await
267267 }
268268 async fn wait_for_terminal_exit (
269269 & self ,
270270 args : WaitForTerminalExitRequest ,
271271 ) -> Result < WaitForTerminalExitResponse , Error > {
272- self . wait_for_terminal_exit ( args) . await
272+ self . as_ref ( ) . wait_for_terminal_exit ( args) . await
273273 }
274274 async fn kill_terminal_command (
275275 & self ,
276276 args : KillTerminalCommandRequest ,
277277 ) -> Result < KillTerminalCommandResponse , Error > {
278- self . kill_terminal_command ( args) . await
278+ self . as_ref ( ) . kill_terminal_command ( args) . await
279279 }
280280 async fn ext_method ( & self , args : ExtRequest ) -> Result < ExtResponse , Error > {
281- self . ext_method ( args) . await
281+ self . as_ref ( ) . ext_method ( args) . await
282282 }
283283 async fn ext_notification ( & self , args : ExtNotification ) -> Result < ( ) , Error > {
284- self . ext_notification ( args) . await
284+ self . as_ref ( ) . ext_notification ( args) . await
285285 }
286286}
287287
0 commit comments