Crate rift [−] [src]
Rift: Thrift implementation library for Rust.
This crate implements the components required to build a working Thrift server and client. It is divided into the following modules:
- errors
- protocol
- transport
- server
- autogen
The modules are layered as shown. The generated
layer is code
generated by the Thrift compiler's Rust plugin. It uses the components
defined in this crate to serialize and deserialize types and implement
RPC. Users interact with these types and services by writing their own
code on top.
+-----------+
| app dev |
+-----------+
| generated | <-> errors/results
+-----------+
| protocol |
+-----------+
| transport |
+-----------+
Modules
protocol | |
server |
Types required to implement the server half of a Thrift service. Provides the following implementations: |
transport |
Traits and type definitions for sending/receiving bytes over an I/O channel. |
Structs
ApplicationError | |
ProtocolError | |
TransportError |
Enums
ApplicationErrorKind | |
Error | |
ProtocolErrorKind | |
TransportErrorKind |
Traits
TThriftClient |
Identifies an auto-generated Thrift client and specifies the minimum set of functions implementations should provide for auto-generated code to properly send and receive messages to/from a Thrift server. |
Type Definitions
Result |
Result type returned by all rift functions.
As is convention this is a typedef of |