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 socketmax_payload_size
- the maximum bytes a frame payload can besend_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.
Auto Trait Implementations
impl !RefUnwindSafe for ReaderWriter
impl Send for ReaderWriter
impl Sync for ReaderWriter
impl Unpin for ReaderWriter
impl !UnwindSafe for ReaderWriter