Trait hrpc::server::CustomError[][src]

Expand description

Trait that needs to be implemented to use an error type with a generated service server.

Associated Constants

Status code and error body used to respond when a protobuf decode error occurs.

Status code and error body used to respond when a not found error occurs.

Status code and error body used to respond when a method not allowed error occurs.

Status code and error body used to respond when an internal server error occurs.

Required methods

Status code that will be used in client response.

Message that will be used in client response.

Implementations on Foreign Types

Implementors