Module rift::transport
[−]
[src]
Traits and type definitions for sending/receiving bytes over an I/O channel.
The core type exposed here is [TTransport
][ttransport],
which can by used by a [TProtocol
][tprotocol]. While TProtocol
exposes a typed interface for sending/receiving messages,
TTransport
deals only with bytes.
Specific implementations include:
* [TBufferedTransport
][tbuffered]: wraps an underlying transport
with a buffer, reducing the number of I/O operations
* [TFramedTransport
][tframed]: wraps an underlying transport and prefixes
outgoing messages with a message-framing header
* [TTcpTransport
][ttcp]: sends messages over a TCP socket
[ttransport] trait.TTransport.html [tprotocol] trait.TProtocol.html [tbuffered] trait.TBufferedTransport.html [tframed] trait.TFramedTransport.html [ttcp] trait.TTcpTransport.html
Structs
TBufferedTransport |
A Thrift transport that performs I/O operations
to/from an intermediate buffer to avoid hitting
the underlying transport unnecessarily. All writes
are written to this object's intermediate
buffer and only written to the underlying transport
on a |
TBufferedTransportFactory |
Convenience object that can be used to create an instance of |
TFramedTransport | |
TFramedTransportFactory |
Convenience object that can be used to create an instance of |
TPassThruTransport | |
TTcpTransport |
Sends and receives bytes over a TCP socket. |
Traits
TTransport |
Marker trait identifying a |
TTransportFactory |
A trait for objects that can construct a |