Struct msql_srv::MysqlIntermediary [] [src]

pub struct MysqlIntermediary<B, R: Read, W: Write> { /* fields omitted */ }

A server that speaks the MySQL/MariaDB protocol, and can delegate client commands to a backend that implements MysqlShim.

Methods

impl<B: MysqlShim<TcpStream>> MysqlIntermediary<B, TcpStream, TcpStream>
[src]

[src]

Create a new server over a TCP stream and process client commands until the client disconnects or an error occurs. See also MysqlIntermediary::run_on.

impl<B: MysqlShim<S>, S: Read + Write + Clone> MysqlIntermediary<B, S, S>
[src]

[src]

Create a new server over a two-way stream and process client commands until the client disconnects or an error occurs. See also MysqlIntermediary::run_on.

impl<B: MysqlShim<W>, R: Read, W: Write> MysqlIntermediary<B, R, W>
[src]

[src]

Create a new server over two one-way channels and process client commands until the client disconnects or an error occurs.