| /tonic/tonic-types/src/richer_error/std_messages/ |
| H A D | help.rs | 6 use super::super::{pb, FromAny, IntoAny}; 28 impl From<pb::help::Link> for HelpLink { 29 fn from(value: pb::help::Link) -> Self { in from() 37 impl From<HelpLink> for pb::help::Link { 39 pb::help::Link { in from() 100 let detail_data: pb::Help = self.into(); in into_any() 119 let help = pb::Help::decode(buf)?; in from_any_ref() 125 impl From<pb::Help> for Help { 126 fn from(value: pb::Help) -> Self { in from() 133 impl From<Help> for pb::Help { [all …]
|
| H A D | bad_request.rs | 6 use super::super::{pb, FromAny, IntoAny}; 31 impl From<pb::bad_request::FieldViolation> for FieldViolation { 32 fn from(value: pb::bad_request::FieldViolation) -> Self { in from() 40 impl From<FieldViolation> for pb::bad_request::FieldViolation { 42 pb::bad_request::FieldViolation { in from() 104 let detail_data: pb::BadRequest = self.into(); in into_any() 123 let bad_req = pb::BadRequest::decode(buf)?; in from_any_ref() 129 impl From<pb::BadRequest> for BadRequest { 130 fn from(value: pb::BadRequest) -> Self { in from() 137 impl From<BadRequest> for pb::BadRequest { [all …]
|
| H A D | quota_failure.rs | 6 use super::super::{pb, FromAny, IntoAny}; 29 impl From<pb::quota_failure::Violation> for QuotaViolation { 30 fn from(value: pb::quota_failure::Violation) -> Self { in from() 38 impl From<QuotaViolation> for pb::quota_failure::Violation { 40 pb::quota_failure::Violation { in from() 101 let detail_data: pb::QuotaFailure = self.into(); in into_any() 120 let quota_failure = pb::QuotaFailure::decode(buf)?; in from_any_ref() 126 impl From<pb::QuotaFailure> for QuotaFailure { 127 fn from(value: pb::QuotaFailure) -> Self { in from() 134 impl From<QuotaFailure> for pb::QuotaFailure { [all …]
|
| H A D | prec_failure.rs | 6 use super::super::{pb, FromAny, IntoAny}; 41 impl From<pb::precondition_failure::Violation> for PreconditionViolation { 42 fn from(value: pb::precondition_failure::Violation) -> Self { in from() 51 impl From<PreconditionViolation> for pb::precondition_failure::Violation { 53 pb::precondition_failure::Violation { in from() 124 let detail_data: pb::PreconditionFailure = self.into(); in into_any() 143 let precondition_failure = pb::PreconditionFailure::decode(buf)?; in from_any_ref() 149 impl From<pb::PreconditionFailure> for PreconditionFailure { 150 fn from(value: pb::PreconditionFailure) -> Self { in from() 157 impl From<PreconditionFailure> for pb::PreconditionFailure { [all …]
|
| H A D | request_info.rs | 6 use super::super::{pb, FromAny, IntoAny}; 45 let detail_data: pb::RequestInfo = self.into(); in into_any() 64 let req_info = pb::RequestInfo::decode(buf)?; in from_any_ref() 70 impl From<pb::RequestInfo> for RequestInfo { 71 fn from(req_info: pb::RequestInfo) -> Self { in from() 79 impl From<RequestInfo> for pb::RequestInfo { 81 pb::RequestInfo { in from()
|
| H A D | loc_message.rs | 6 use super::super::{pb, FromAny, IntoAny}; 46 let detail_data: pb::LocalizedMessage = self.into(); in into_any() 65 let loc_message = pb::LocalizedMessage::decode(buf)?; in from_any_ref() 71 impl From<pb::LocalizedMessage> for LocalizedMessage { 72 fn from(loc_message: pb::LocalizedMessage) -> Self { in from() 80 impl From<LocalizedMessage> for pb::LocalizedMessage { 82 pb::LocalizedMessage { in from()
|
| H A D | debug_info.rs | 6 use super::super::{pb, FromAny, IntoAny}; 42 let detail_data: pb::DebugInfo = self.into(); in into_any() 61 let debug_info = pb::DebugInfo::decode(buf)?; in from_any_ref() 67 impl From<pb::DebugInfo> for DebugInfo { 68 fn from(debug_info: pb::DebugInfo) -> Self { in from() 76 impl From<DebugInfo> for pb::DebugInfo { 78 pb::DebugInfo { in from()
|
| H A D | resource_info.rs | 6 use super::super::{pb, FromAny, IntoAny}; 58 let detail_data: pb::ResourceInfo = self.into(); in into_any() 77 let res_info = pb::ResourceInfo::decode(buf)?; in from_any_ref() 83 impl From<pb::ResourceInfo> for ResourceInfo { 84 fn from(res_info: pb::ResourceInfo) -> Self { in from() 94 impl From<ResourceInfo> for pb::ResourceInfo { 96 pb::ResourceInfo { in from()
|
| H A D | error_info.rs | 8 use super::super::{pb, FromAny, IntoAny}; 58 let detail_data: pb::ErrorInfo = self.into(); in into_any() 77 let error_info = pb::ErrorInfo::decode(buf)?; in from_any_ref() 83 impl From<pb::ErrorInfo> for ErrorInfo { 84 fn from(error_info: pb::ErrorInfo) -> Self { in from() 93 impl From<ErrorInfo> for pb::ErrorInfo { 95 pb::ErrorInfo { in from()
|
| H A D | retry_info.rs | 8 use super::super::{pb, FromAny, IntoAny}; 57 let detail_data: pb::RetryInfo = self.into(); in into_any() 76 let retry_info = pb::RetryInfo::decode(buf)?; in from_any_ref() 82 impl From<pb::RetryInfo> for RetryInfo { 83 fn from(retry_info: pb::RetryInfo) -> Self { in from() 97 impl From<RetryInfo> for pb::RetryInfo { 114 pb::RetryInfo { retry_delay } in from()
|
| /tonic/interop/src/ |
| H A D | lib.rs | 6 pub mod pb { module 18 pub fn client_payload(size: usize) -> pb::Payload { in client_payload() 19 pb::Payload { in client_payload() 25 pub fn server_payload(size: usize) -> pb::Payload { in server_payload() 26 pb::Payload { in server_payload() 32 impl pb::ResponseParameters { impl 34 pb::ResponseParameters { in with_size() 41 fn response_length(response: &pb::StreamingOutputCallResponse) -> i32 { in response_length() 48 fn response_lengths(responses: &[pb::StreamingOutputCallResponse]) -> Vec<i32> { in response_lengths()
|
| /tonic/tonic-health/src/ |
| H A D | lib.rs | 41 pub mod pb { module 68 impl From<ServingStatus> for pb::health_check_response::ServingStatus { 71 ServingStatus::Unknown => pb::health_check_response::ServingStatus::Unknown, in from() 72 ServingStatus::Serving => pb::health_check_response::ServingStatus::Serving, in from() 73 ServingStatus::NotServing => pb::health_check_response::ServingStatus::NotServing, in from()
|
| /tonic/tests/extern_path/my_application/src/ |
| H A D | main.rs | 2 mod pb { module 7 let message = pb::MyMessage { in main() 19 let message = pb::MyMessage { in service_types_have_extern_types()
|
| /tonic/examples/src/authentication/ |
| H A D | server.rs | 1 pub mod pb { module 5 use pb::{EchoRequest, EchoResponse}; 14 impl pb::echo_server::Echo for EchoServer { 26 let svc = pb::echo_server::EchoServer::with_interceptor(server, check_auth); in main()
|
| H A D | client.rs | 1 pub mod pb { module 5 use pb::{echo_client::EchoClient, EchoRequest};
|
| /tonic/examples/src/load_balance/ |
| H A D | server.rs | 1 pub mod pb { module 9 use pb::{EchoRequest, EchoResponse}; 19 impl pb::echo_server::Echo for EchoServer { 39 .add_service(pb::echo_server::EchoServer::new(server)) in main()
|
| H A D | client.rs | 1 pub mod pb { module 5 use pb::{echo_client::EchoClient, EchoRequest};
|
| /tonic/examples/src/dynamic_load_balance/ |
| H A D | server.rs | 1 pub mod pb { module 9 use pb::{EchoRequest, EchoResponse}; 19 impl pb::echo_server::Echo for EchoServer { 39 .add_service(pb::echo_server::EchoServer::new(server)) in main()
|
| /tonic/tests/included_service/src/ |
| H A D | lib.rs | 1 pub mod pb { module 8 type _Test = dyn pb::top_service_server::TopService;
|
| /tonic/examples/src/tls/ |
| H A D | server.rs | 1 pub mod pb { module 5 use pb::{EchoRequest, EchoResponse}; 20 impl pb::echo_server::Echo for EchoServer { 50 .add_service(pb::echo_server::EchoServer::new(server)) in main()
|
| H A D | client.rs | 1 pub mod pb { module 5 use pb::{echo_client::EchoClient, EchoRequest};
|
| /tonic/examples/src/tls_client_auth/ |
| H A D | server.rs | 1 pub mod pb { module 5 use pb::{EchoRequest, EchoResponse}; 15 impl pb::echo_server::Echo for EchoServer { 47 .add_service(pb::echo_server::EchoServer::new(server)) in main()
|
| /tonic/tonic-types/src/richer_error/ |
| H A D | mod.rs | 11 use super::pb; 38 let status = pb::Status { in gen_details_bytes() 607 let status = pb::Status::decode(self.details())?; in check_error_details() 617 let status = pb::Status::decode(self.details())?; in check_error_details_vec() 627 let status = pb::Status::decode(self.details()).ok()?; in get_details_retry_info() 633 let status = pb::Status::decode(self.details()).ok()?; in get_details_debug_info() 639 let status = pb::Status::decode(self.details()).ok()?; in get_details_quota_failure() 645 let status = pb::Status::decode(self.details()).ok()?; in get_details_error_info() 651 let status = pb::Status::decode(self.details()).ok()?; in get_details_precondition_failure() 687 impl crate::sealed::Sealed for pb::Status {} [all …]
|
| /tonic/tonic-types/src/ |
| H A D | lib.rs | 171 pub mod pb { module 175 pub use pb::Status;
|
| /tonic/examples/src/tls_rustls/ |
| H A D | server.rs | 1 pub mod pb { module 10 use pb::{EchoRequest, EchoResponse}; 45 let svc = Routes::new(pb::echo_server::EchoServer::new(server)).prepare(); in main() 107 impl pb::echo_server::Echo for EchoServer {
|