Crate madsim_tonic Copy item path Source body HTTP specific body utilities. client Generic client implementation. codec Generic encoding and decoding. metadata Contains data structures and utilities for handling gRPC custom metadata. server Generic server implementation. service Utilities for using Tower services with Tonic. transport Batteries included server and client. include_file_descriptor_set Include an encoded prost_types::FileDescriptorSet as a &'static [u8]. The parameter must be
the stem of the filename passed to file_descriptor_set_path for the tonic-build::Builder,
excluding the .bin extension. include_proto Include generated proto server and client items. ConnectError Wrapper type to indicate that an error occurs during the connection
process, so that the appropriate gRPC Status can be inferred. Extensions A type map of protocol extensions. GrpcMethod A gRPC Method info extension. Request A gRPC request and metadata from an RPC call. Response A gRPC response and metadata from an RPC call. Status A gRPC status describing the result of an RPC call. Streaming Streaming requests and responses. TimeoutExpired Error returned if a request didn’t complete within the configured timeout. Code gRPC status codes used by Status . IntoRequest Trait implemented by RPC request types. IntoStreamingRequest Trait implemented by RPC streaming request types. Result Result is a type that represents either success (Ok ) or failure (Err ).
By default, the Err value is of type Status but this can be overridden if desired.async_trait