Crate hrpc[−][src]
Expand description
Common code used in hRPC code generation.
Modules
Body utitilies and types.
Common client types and functions.
Some re-exported crates that might be useful while writing software with hrpc
.
Common server types and functions.
Macros
Bails with an error.
Takes a Result
, returns the error if it’s Err
, otherwise returns the
Ok
value.
Takes a Result
, returns the error as a HTTP response if it’s Err
,
otherwise returns the Ok
value.
Combines a list of services that implement Server
.
Include generated proto server and client items.
Structs
Enums
Errors that can occur while decoding the body of a Request
.
Constants
The hRPC protobuf mimetype.
Traits
Trait used for blanket impls on generated protobuf types.
Trait used for converting any type to a Response type.
Functions
Encodes a protobuf message into a new BytesMut
buffer.
Encodes a protobuf message into the given BytesMut
buffer.
Type Definitions
Alias for a type-erased error type.
HTTP request used by hRPC.
HTTP response used by hRPC.