Crate prost_twirp [] [src]

Prost Twirp is a code generator and set of utilities for calling and serving Twirp services in Rust, using the prost and hyper libraries.

See the github project for more info.

Structs

HyperClient

A wrapper for a hyper client

HyperServer

A wrapper for a HyperService trait that keeps a Arc version of the service

ServiceRequest

A request with HTTP info and the serialized input object

ServiceResponse

A response with HTTP info and a serialized output object

TwirpError

A JSON-serializable Twirp error

Enums

ProstTwirpError

An error that can occur during a call to a Twirp service

Traits

HyperService

Service for taking a raw service request and returning a boxed future of a raw service response

Type Definitions

FutReq
PTReq

The type of every service request

PTRes

The type of every service response