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
.
The hRPC generated protocol.
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 MakeRoutes
.
Include generated proto server and client items.
Macro to workaround async fn
s not being allowed in traits. You do not
need to use this directly, instead you should use the handler
macro
attribute provided in the server prelude.
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.