Crate tk_bufstream [] [src]

Structs

Buf

A buffer object to be used for reading from network

Flushed

A future which yields the original stream when output buffer is fully written to the socket

Framed

A unified Stream and Sink interface to an underlying Io object, using the Encode and Decode traits to encode and decode frames.

FutureWriteRaw

A future which converts WriteBuf into WriteRaw

IoBuf

A wrapper for full-duplex stream

Mock

A thing that implements tokio_core::io::Io but never ready

MockData

A mock stream where you can push data to/from

ReadBuf

An input counterpart of IoBuf when the latter is split

ReadFramed

A Stream interface to ReadBuf object

WriteBuf

An output counterpart of IoBuf when the latter is split

WriteFramed

A Sink interface to WriteBuf object

WriteRaw

A structure that locks IoBuf and allows you to write to the socket directly

Traits

Decode

Decoding of a frame from an internal buffer.

Encode

A trait for encoding frames into a byte buffer.