From 1e9050916f7582a34118234f3585c014b7853dd0 Mon Sep 17 00:00:00 2001 From: Jonas Kruckenberg <118265418+CrabNejonas@users.noreply.github.com> Date: Mon, 13 Nov 2023 12:48:30 +0100 Subject: [PATCH] Update rs.devtools.tauri.rs --- wire/src/generated/rs.devtools.tauri.rs | 64 +++++++++++++++++-------- 1 file changed, 43 insertions(+), 21 deletions(-) diff --git a/wire/src/generated/rs.devtools.tauri.rs b/wire/src/generated/rs.devtools.tauri.rs index 91ed54ca..9d0e5d0b 100644 --- a/wire/src/generated/rs.devtools.tauri.rs +++ b/wire/src/generated/rs.devtools.tauri.rs @@ -79,7 +79,10 @@ pub mod tauri_server { max_encoding_message_size: None, } } - pub fn with_interceptor(inner: T, interceptor: F) -> InterceptedService + pub fn with_interceptor( + inner: T, + interceptor: F, + ) -> InterceptedService where F: tonic::service::Interceptor, { @@ -135,16 +138,21 @@ pub mod tauri_server { "/rs.devtools.tauri.Tauri/GetVersions" => { #[allow(non_camel_case_types)] struct GetVersionsSvc(pub Arc); - impl tonic::server::UnaryService for GetVersionsSvc { + impl tonic::server::UnaryService + for GetVersionsSvc { type Response = super::Versions; - type Future = BoxFuture, tonic::Status>; + type Future = BoxFuture< + tonic::Response, + tonic::Status, + >; fn call( &mut self, request: tonic::Request, ) -> Self::Future { let inner = Arc::clone(&self.0); - let fut = - async move { ::get_versions(&inner, request).await }; + let fut = async move { + ::get_versions(&inner, request).await + }; Box::pin(fut) } } @@ -174,16 +182,21 @@ pub mod tauri_server { "/rs.devtools.tauri.Tauri/GetConfig" => { #[allow(non_camel_case_types)] struct GetConfigSvc(pub Arc); - impl tonic::server::UnaryService for GetConfigSvc { + impl tonic::server::UnaryService + for GetConfigSvc { type Response = super::Config; - type Future = BoxFuture, tonic::Status>; + type Future = BoxFuture< + tonic::Response, + tonic::Status, + >; fn call( &mut self, request: tonic::Request, ) -> Self::Future { let inner = Arc::clone(&self.0); - let fut = - async move { ::get_config(&inner, request).await }; + let fut = async move { + ::get_config(&inner, request).await + }; Box::pin(fut) } } @@ -213,16 +226,21 @@ pub mod tauri_server { "/rs.devtools.tauri.Tauri/GetMetrics" => { #[allow(non_camel_case_types)] struct GetMetricsSvc(pub Arc); - impl tonic::server::UnaryService for GetMetricsSvc { + impl tonic::server::UnaryService + for GetMetricsSvc { type Response = super::Metrics; - type Future = BoxFuture, tonic::Status>; + type Future = BoxFuture< + tonic::Response, + tonic::Status, + >; fn call( &mut self, request: tonic::Request, ) -> Self::Future { let inner = Arc::clone(&self.0); - let fut = - async move { ::get_metrics(&inner, request).await }; + let fut = async move { + ::get_metrics(&inner, request).await + }; Box::pin(fut) } } @@ -249,14 +267,18 @@ pub mod tauri_server { }; Box::pin(fut) } - _ => Box::pin(async move { - Ok(http::Response::builder() - .status(200) - .header("grpc-status", "12") - .header("content-type", "application/grpc") - .body(empty_body()) - .unwrap()) - }), + _ => { + Box::pin(async move { + Ok( + http::Response::builder() + .status(200) + .header("grpc-status", "12") + .header("content-type", "application/grpc") + .body(empty_body()) + .unwrap(), + ) + }) + } } } }