Struct toku_connection::ReaderWriter[][src]

pub struct ReaderWriter {
    pub reader: SplitStream<Framed<TcpStream, Codec>>,
    // some fields omitted
}

Fields

reader: SplitStream<Framed<TcpStream, Codec>>

Implementations

Create a new ReaderWriter that can read and write frames to a tcp socket.

Arguments

  • tcp_stream - raw tcp socket
  • max_payload_size - the maximum bytes a frame payload can be
  • send_go_away - whether or not to send a go away when the connection closes

Tries to write a TokuFrame to the socket. Returns an error if the socket has closed.

Split this ReaderWriter, returning the Reader and Writer parts.

Gracefully closes the socket. Optionally sends a GoAway frame before closing.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.