Expand description
Generic client and server implementations and transport implementations for hRPC.
- For generic client and client implementations, see the
clientmodule. - For generic server and server implementations, see the
servermodule. - For common code shared by client and servers, see the
commonmodule. - Modules named
transportcontain transport specific code. - Modules named
layercontain layers for use. These can be generic, or transport specific.
Modules§
- body
- Body utitilies and types.
- client
- Common client types and functions.
- common
- Common utilities.
- decode
- Decoding utilities.
- encode
- Encoding utilities.
- exports
- Some re-exported crates that might be useful while writing software with
hrpc. - proto
- The hRPC generated protocol.
- request
- The
Requesttype used by hRPC. - response
- The
Responsetype used by hRPC. - server
- Common server types and functions.
Macros§
- bail
- Bails with an error.
- bail_
result - Takes a
Result, returns the error if it’sErr, otherwise returns theOkvalue. - combine_
services - Combines a list of services that implement
MakeRoutes. - include_
proto - Include generated proto server and client items.
- make_
handler - Macro to workaround
async fns not being allowed in traits. You do not need to use this directly, instead you should use thehandlermacro attribute provided in the server prelude.
Structs§
Constants§
- HRPC_
CONTENT_ MIMETYPE - The hRPC protobuf mimetype.
- HRPC_
SPEC_ VERSION - The hRPC spec version this version of
hrpc-rsimplements.
Functions§
- box_
error - Convenience function for converting some error to a boxed error.
Type Aliases§
- BoxError
- Alias for a type-erased error type.